Skip to content

Commit

Permalink
fix(menu-builder): Force $menu to array (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Apr 30, 2021
2 parents ab0d346 + 5e3421e commit 946bcd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class MenuBuilder
*/
public function build($menu)
{
$this->menu = $this->filter($menu);
$this->menu = $this->filter((array) $menu);

if (empty($this->menu)) {
return;
Expand Down

0 comments on commit 946bcd4

Please sign in to comment.