diff --git a/src/Framework/Constraint/StringEndsWith.php b/src/Framework/Constraint/StringEndsWith.php index d6118f69e4a..3856078e816 100644 --- a/src/Framework/Constraint/StringEndsWith.php +++ b/src/Framework/Constraint/StringEndsWith.php @@ -43,6 +43,6 @@ public function toString(): string */ protected function matches($other): bool { - return \substr($other, 0 - \strlen($this->suffix)) == $this->suffix; + return \substr($other, 0 - \strlen($this->suffix)) === $this->suffix; } }