Skip to content

Commit 5312a2d

Browse files
browner12taylorotwell
authored andcommitted
revert #24872 (#24885)
1 parent 04d47b7 commit 5312a2d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Illuminate/Http/Request.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,13 @@ public function segments()
184184
*/
185185
public function is(...$patterns)
186186
{
187-
return Str::is($patterns, $this->decodedPath());
187+
foreach ($patterns as $pattern) {
188+
if (Str::is($pattern, $this->decodedPath())) {
189+
return true;
190+
}
191+
}
192+
193+
return false;
188194
}
189195

190196
/**

0 commit comments

Comments
 (0)