Skip to content

Commit

Permalink
revert #24872 (#24885)
Browse files Browse the repository at this point in the history
  • Loading branch information
browner12 authored and taylorotwell committed Jul 19, 2018
1 parent 04d47b7 commit 5312a2d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,13 @@ public function segments()
*/
public function is(...$patterns)
{
return Str::is($patterns, $this->decodedPath());
foreach ($patterns as $pattern) {
if (Str::is($pattern, $this->decodedPath())) {
return true;
}
}

return false;
}

/**
Expand Down

0 comments on commit 5312a2d

Please sign in to comment.