From a337967f11e599a6200f3392b0b8d6362b589c2f Mon Sep 17 00:00:00 2001 From: Brandon Payton Date: Mon, 29 Apr 2024 20:27:37 -0400 Subject: [PATCH] Fix misplaced paren in str_ends_with polyfill --- tests/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 6b8068b..4aa4045 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -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' ) ) {