Skip to content

Commit

Permalink
Fix misplaced paren in str_ends_with polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton committed Apr 30, 2024
1 parent 6838476 commit a337967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function str_contains( string $haystack, string $needle ) {
* @return bool
*/
function str_ends_with( string $haystack, string $needle ) {
return empty( $needle ) || substr( $haystack, -strlen( $needle ) === $needle );
return empty( $needle ) || substr( $haystack, -strlen( $needle ) ) === $needle;
}
}
if ( extension_loaded( 'mbstring' ) ) {
Expand Down

0 comments on commit a337967

Please sign in to comment.