Skip to content

Commit bd67409

Browse files
authored
🩹 Allow parent to be a string (Fixes #79) (#80)
1 parent 090abed commit bd67409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MenuBuilder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected function map(array $menu = []): array
130130
/**
131131
* Handle the menu item hierarchy.
132132
*/
133-
protected function handle(array $items, int $parent = 0): array
133+
protected function handle(array $items, string|int $parent = 0): array
134134
{
135135
$menu = [];
136136

0 commit comments

Comments
 (0)