Skip to content

Commit

Permalink
Annotate the return array shape
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 10, 2024
1 parent 3f7c34b commit 798d363
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/framework/src/Facades/Navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class Navigation
* @param string|null $label If not provided, Hyde will try to get it from the route's connected page, or from the URL.
* @param int|null $priority If not provided, Hyde will try to get it from the route or the default priority of 500.
* @param array<string, scalar> $attributes Additional attributes for the navigation item.
* @return array{destination: string, label: ?string, priority: ?int, attributes: array<string, scalar>}
*/
public static function item(string $destination, ?string $label = null, ?int $priority = null, array $attributes = []): array
{
Expand Down

0 comments on commit 798d363

Please sign in to comment.