Skip to content

Commit 45113cf

Browse files
committed
Merge branch '8.x'
# Conflicts: # tests/Mail/MailSesTransportTest.php
2 parents d6fd27c + 5588c7a commit 45113cf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/Support/Str.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,15 @@ public static function is($pattern, $value)
265265
{
266266
$patterns = Arr::wrap($pattern);
267267

268+
$value = (string) $value;
269+
268270
if (empty($patterns)) {
269271
return false;
270272
}
271273

272274
foreach ($patterns as $pattern) {
275+
$pattern = (string) $pattern;
276+
273277
// If the given value is an exact match we can of course return true right
274278
// from the beginning. Otherwise, we will translate asterisks and do an
275279
// actual pattern match against the two strings to see if they match.

0 commit comments

Comments
 (0)