From 819afbf3f0ad97a558242ec9853711350661b3ad Mon Sep 17 00:00:00 2001 From: Guilliam Xavier Date: Fri, 1 Feb 2019 11:42:23 +0100 Subject: [PATCH] Fix StringEndsWith for numeric string --- src/Framework/Constraint/StringEndsWith.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }