Skip to content

Commit 9353eef

Browse files
committed
Remove nullable destination parameter type
Also no longer needed since decoupling the navigation classes
1 parent e2ec80d commit 9353eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/framework/src/Framework/Features/Navigation/NavigationItem.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ class NavigationItem implements NavigationElement, Stringable
3333
/**
3434
* Create a new navigation menu item with your own properties.
3535
*
36-
* @param \Hyde\Support\Models\Route|string|null $destination Route instance, route key, or external URI. For dropdowns/groups, this should be null.
36+
* @param \Hyde\Support\Models\Route|string $destination Route instance, route key, or external URI.
3737
* @param string $label The label of the navigation item.
3838
* @param int $priority The priority to determine the order of the navigation item.
3939
* @param string|null $group The dropdown/group key of the navigation item, if any.
4040
*/
41-
public function __construct(Route|string|null $destination, string $label, int $priority = NavigationMenu::DEFAULT, ?string $group = null)
41+
public function __construct(Route|string $destination, string $label, int $priority = NavigationMenu::DEFAULT, ?string $group = null)
4242
{
4343
if (is_string($destination)) {
4444
$destination = Routes::get($destination) ?? new ExternalRoute($destination);

0 commit comments

Comments
 (0)