Skip to content

Commit

Permalink
Fix StringEndsWith for numeric string
Browse files Browse the repository at this point in the history
  • Loading branch information
guilliamxavier authored and sebastianbergmann committed Feb 15, 2019
1 parent 64df74a commit 819afbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Framework/Constraint/StringEndsWith.php
Expand Up @@ -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;
}
}

0 comments on commit 819afbf

Please sign in to comment.