From 7406c94834bf15e9a4df83dd0f5e7385deeffe73 Mon Sep 17 00:00:00 2001 From: fiwswe Date: Thu, 7 Mar 2024 09:31:39 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20Rector=20and=20PHPCS=20fixes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/compatibility.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/compatibility.php b/inc/compatibility.php index b60704f298..4270c5d1f3 100644 --- a/inc/compatibility.php +++ b/inc/compatibility.php @@ -105,7 +105,7 @@ function str_starts_with(?string $haystack, ?string $needle) if (!function_exists('str_contains')) { function str_contains(?string $haystack, ?string $needle) { - return '' === $needle || false !== strpos($haystack, $needle); + return '' === $needle || false !== strpos($haystack, (string) $needle); } }