Skip to content

Commit 764f453

Browse files
committed
Replace func for PHP74
1 parent dbbc50f commit 764f453

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/Rest/RestServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public function testRegisterRoutesRegistersAllControllerRoutes(): void {
5858
foreach ( $expectedPatterns as $pattern ) {
5959
$found = false;
6060
foreach ( $routes as $route ) {
61-
if ( str_contains( $route, $pattern ) ) {
61+
if ( strpos( $route, $pattern ) !== false ) {
6262
$found = true;
6363
break;
6464
}

0 commit comments

Comments
 (0)