Skip to content

Commit ac96636

Browse files
committed
Rename param
1 parent 3287848 commit ac96636

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Support/Str.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ class Str
77
/**
88
* Determine if a given string matches a given pattern.
99
*/
10-
public static function is(string|iterable $pattern, string $value): bool
10+
public static function is(string|iterable $patterns, string $value): bool
1111
{
12-
if (! is_iterable($pattern)) {
13-
$pattern = [$pattern];
12+
if (! is_iterable($patterns)) {
13+
$patterns = [$patterns];
1414
}
1515

16-
foreach ($pattern as $pattern) {
16+
foreach ($patterns as $pattern) {
1717
$pattern = (string) $pattern;
1818

1919
// If the given value is an exact match we can of course return true right

0 commit comments

Comments
 (0)