From 1e23abcdd857736cd45fc96e18a473bee43c8789 Mon Sep 17 00:00:00 2001 From: spiralbot Date: Fri, 6 Sep 2024 09:03:13 +0000 Subject: [PATCH] Apply php8.0 in Rector preset (#1139) --- src/Matcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Matcher.php b/src/Matcher.php index 3b1972c4..88cfd249 100644 --- a/src/Matcher.php +++ b/src/Matcher.php @@ -13,7 +13,7 @@ final class Matcher { public function isPattern(string $string): bool { - return \strpos($string, '*') !== false || \strpos($string, '|') !== false; + return \str_contains($string, '*') || \str_contains($string, '|'); } /**