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.
2 parents d6fd27c + 5588c7a commit 45113cfCopy full SHA for 45113cf
src/Illuminate/Support/Str.php
@@ -265,11 +265,15 @@ public static function is($pattern, $value)
265
{
266
$patterns = Arr::wrap($pattern);
267
268
+ $value = (string) $value;
269
+
270
if (empty($patterns)) {
271
return false;
272
}
273
274
foreach ($patterns as $pattern) {
275
+ $pattern = (string) $pattern;
276
277
// If the given value is an exact match we can of course return true right
278
// from the beginning. Otherwise, we will translate asterisks and do an
279
// actual pattern match against the two strings to see if they match.
0 commit comments