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

Type hinting the baum\node class

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