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, '|'); } /**