Skip to content

Commit

Permalink
[5.3] Fix gatherMiddleware() only unique (#16185)
Browse files Browse the repository at this point in the history
  • Loading branch information
actionm authored and taylorotwell committed Oct 30, 2016
1 parent c460b69 commit 778a381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ protected function extractOptionalParameters()
*/
public function gatherMiddleware()
{
return array_merge($this->middleware(), $this->controllerMiddleware());
return array_unique(array_merge($this->middleware(), $this->controllerMiddleware()), SORT_REGULAR);
}

/**
Expand Down

0 comments on commit 778a381

Please sign in to comment.