Skip to content

Commit

Permalink
Declare unknown variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hoffmann committed Jul 14, 2017
1 parent 0e5cf92 commit a1d75bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Routing/RouteCollection.php
Expand Up @@ -536,6 +536,8 @@ public function getMatchingMiddleware($needle)

if (preg_match($pattern, $needle)) {
$matching = array_merge($matching, $middleware);
$resolved = [];

foreach ($matching as $name) {
$resolved[] = $this->_middleware[$name];
}
Expand Down

0 comments on commit a1d75bb

Please sign in to comment.