src/Constraint/Equals.php
public function equivalentTo(Expression $other)
    {
        if ($other instanceof In && !$other->isStrict()) {
            return array($this->comparedValue) == $other->getAcceptedValues();
        }

        // Since this class is final, we can check with instanceof
        return $other instanceof $this && $this->comparedValue == $other->comparedValue;
    }
public function equivalentTo(Expression $other)
    {
        if ($other instanceof In && !$other->isStrict()) {
            return array($this->comparedValue) == $other->getAcceptedValues();
        }

        // Since this class is final, we can check with instanceof
        return $other instanceof $this && $this->comparedValue == $other->comparedValue;
    }
{@inheritdoc}