Skip to content

Commit d1c27e1

Browse files
committed
Update Str.php
1 parent dd41a54 commit d1c27e1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Support/Str.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,10 +200,11 @@ public static function decodeUtf7Imap(string $string): string
200200
}, $string);
201201
}
202202

203-
public static function is($pattern, $value, $ignoreCase = false)
203+
/**
204+
* Determine if a given string matches a given pattern.
205+
*/
206+
public static function is(array|string $pattern, string $value, bool $ignoreCase = false)
204207
{
205-
$value = (string) $value;
206-
207208
if (! is_iterable($pattern)) {
208209
$pattern = [$pattern];
209210
}

0 commit comments

Comments
 (0)