Commit 3fd6e000 authored by Nicolas Widart's avatar Nicolas Widart

Type hinting the baum\node class

parent 1a01d36e
<?php namespace Modules\Menu\Services; <?php namespace Modules\Menu\Services;
use Baum\Node;
use Illuminate\Support\Facades\URL; use Illuminate\Support\Facades\URL;
class MenuRenderer class MenuRenderer
...@@ -65,7 +66,7 @@ class MenuRenderer ...@@ -65,7 +66,7 @@ class MenuRenderer
* @param $item * @param $item
* @return bool * @return bool
*/ */
private function hasChildren($item) private function hasChildren(Node $item)
{ {
return !$item->children()->get()->isEmpty(); return !$item->children()->get()->isEmpty();
} }
......
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