src/Selector/Selector.php
public function equivalentTo(Expression $other)
    {
        if (get_class($this) !== get_class($other)) {
            return false;
        }

        /* @var Selector $other */
        return $this->expr->equivalentTo($other->expr);
    }
public function equivalentTo(Expression $other)
    {
        if (get_class($this) !== get_class($other)) {
            return false;
        }

        /* @var Selector $other */
        return $this->expr->equivalentTo($other->expr);
    }
{@inheritdoc}