diff --git a/packages/framework/src/Framework/Features/Navigation/NavItem.php b/packages/framework/src/Framework/Features/Navigation/NavItem.php index b6181fb08e8..37686076f92 100644 --- a/packages/framework/src/Framework/Features/Navigation/NavItem.php +++ b/packages/framework/src/Framework/Features/Navigation/NavItem.php @@ -97,9 +97,9 @@ public static function forRoute(Route|string $route, ?string $label = null, ?int * * @param string $label The label of the dropdown item. * @param array $items The items to be included in the dropdown. - * @param int|null $priority The priority of the dropdown item. Leave blank to use the default priority, which is last in the menu. + * @param int $priority The priority of the dropdown item. Leave blank to use the default priority, which is last in the menu. */ - public static function forGroup(string $label, array $items, ?int $priority = NavigationMenu::LAST): static + public static function forGroup(string $label, array $items, int $priority = NavigationMenu::LAST): static { return new static('', $label, $priority, $label, $items); }