src/Selector/Method.php
public function equivalentTo(Expression $other)
    {
        if (!parent::equivalentTo($other)) {
            return false;
        }

        /* @var static $other */
        return $this->methodName === $other->methodName && $this->arguments === $other->arguments;
    }
public function equivalentTo(Expression $other)
    {
        if (!parent::equivalentTo($other)) {
            return false;
        }

        /* @var static $other */
        return $this->methodName === $other->methodName && $this->arguments === $other->arguments;
    }
{@inheritdoc}