We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd41a54 commit d1c27e1Copy full SHA for d1c27e1
src/Support/Str.php
@@ -200,10 +200,11 @@ public static function decodeUtf7Imap(string $string): string
200
}, $string);
201
}
202
203
- public static function is($pattern, $value, $ignoreCase = false)
+ /**
204
+ * Determine if a given string matches a given pattern.
205
+ */
206
+ public static function is(array|string $pattern, string $value, bool $ignoreCase = false)
207
{
- $value = (string) $value;
-
208
if (! is_iterable($pattern)) {
209
$pattern = [$pattern];
210
0 commit comments