Skip to content

Commit

Permalink
Fail faster by checking Route Validators in likely fail order (#15287)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispittman authored and taylorotwell committed Sep 6, 2016
1 parent 72f5a1d commit e638b8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -666,8 +666,8 @@ public static function getValidators()
// validator implementations. We will spin through each one making sure it
// passes and then we will know if the route as a whole matches request.
return static::$validators = [
new MethodValidator, new SchemeValidator,
new HostValidator, new UriValidator,
new UriValidator, new MethodValidator,
new SchemeValidator, new HostValidator,
];
}

Expand Down

0 comments on commit e638b8c

Please sign in to comment.