laravel/laravel — Issue #318: Overloaded object of type Closure is not compatible with RecursiveArrayIterator in SYS_PATH/routing/finder.php on line 29.
Author: pauldub
Created: 2012-02-08 13:15:29+00:00
State: open

```
Overloaded object of type Closure is not compatible with RecursiveArrayIterator in SYS_PATH/routing/finder.php on line 29.

Stack Trace:

0 [internal function]: ArrayIterator->__construct(Object(Closure), 67108864)
1 /homez.356/jeublanc/system/routing/finder.php(29): RecursiveArrayIterator->getChildren()
2 /homez.356/jeublanc/system/url.php(71): System\Routing\Finder::find('products', Array)
3 /homez.356/jeublanc/system/url.php(136): System\URL::to_route('products', Array)
4 /homez.356/jeublanc/application/views/partials/home_header.php(18): System\URL::__callStatic('to_products', Array)
5 /homez.356/jeublanc/application/views/partials/home_header.php(18): System\URL::to_products()
6 /homez.356/jeublanc/system/view.php(173): include('/homez.356/jeub...')
7 /homez.356/jeublanc/system/view.php(252): System\View->get()
8 /homez.356/jeublanc/system/view.php(168): System\View->__toString()
9 /homez.356/jeublanc/system/view.php(252): System\View->get()
10 /homez.356/jeublanc/system/laravel.php(180): System\View->__toString()
11 /homez.356/jeublanc/www/index.php(46): require('/homez.356/jeub...')
12 {main}

Snapshot:
24:
25:	$recursiveIterator = new \RecursiveIteratorIterator($arrayIterator);
26:
27:	// Since routes can be nested deep within sub-directories, we need to recursively
28:	// iterate through each directory and gather all of the routes.
29:	foreach ($recursiveIterator as $iterator)
30:	{
31:	$route = $recursiveIterator->getSubIterator();
32:
33:	if (isset($route['name']) and $route['name'] == $name)
34:	{
```