diff --git a/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php b/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php index b4e55a60706..2a9d54c701e 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php +++ b/packages/framework/src/Framework/Features/Navigation/NavigationMenuGenerator.php @@ -84,7 +84,7 @@ protected function generate(): void collect(Config::getArray('hyde.navigation.custom', []))->each(function (array $item): void { /** @var array{destination: string, label: ?string, priority: ?int, attributes: array} $item */ // Since these were added explicitly by the user, we can assume they should always be shown - $this->items->push(NavigationItem::create($item['destination'], $item['label'] ?? null, $item['priority'] ?? null, $item['attributes'] ?? [])); + $this->items->push(NavigationItem::create(...$item)); }); } }