Skip to content

Commit

Permalink
Merge pull request laravel#8700 from morganhein/5.0
Browse files Browse the repository at this point in the history
[5.0] Fix for using closure with callable middleware
  • Loading branch information
taylorotwell committed May 11, 2015
2 parents 85bd758 + ce16829 commit b3fbf02
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 @@ -620,7 +620,7 @@ protected function findCallable(array $action)
{
return array_first($action, function($key, $value)
{
return is_callable($value);
return is_callable($value) && is_numeric($index);
});
}

Expand Down

0 comments on commit b3fbf02

Please sign in to comment.