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' ) ) {