Commit 775f11e0 authored by Taylor Otwell's avatar Taylor Otwell

Refactoring Route\Finder.

parent 0767fa50
......@@ -34,8 +34,7 @@ class Finder {
return static::$names[$name];
}
$arrayIterator = new \RecursiveArrayIterator(static::$routes);
$recursiveIterator = new \RecursiveIteratorIterator($arrayIterator);
$recursiveIterator = new \RecursiveIteratorIterator($arrayIterator = new \RecursiveArrayIterator(static::$routes));
foreach ($recursiveIterator as $iterator)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment