Skip to content

Commit

Permalink
🩹 Allow parent to be a string (Fixes #79) (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
Log1x committed Apr 23, 2024
1 parent 090abed commit bd67409
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 @@ -130,7 +130,7 @@ protected function map(array $menu = []): array
/**
* Handle the menu item hierarchy.
*/
protected function handle(array $items, int $parent = 0): array
protected function handle(array $items, string|int $parent = 0): array
{
$menu = [];

Expand Down

0 comments on commit bd67409

Please sign in to comment.