Skip to content

Commit 17ca035

Browse files
committed
Annotate the return array shape
1 parent 3f7c34b commit 17ca035

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/framework/src/Facades/Navigation.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ class Navigation
2222
* @param string|null $label If not provided, Hyde will try to get it from the route's connected page, or from the URL.
2323
* @param int|null $priority If not provided, Hyde will try to get it from the route or the default priority of 500.
2424
* @param array<string, scalar> $attributes Additional attributes for the navigation item.
25+
*
26+
* @return array{destination: string, label: ?string, priority: ?int, attributes: array<string, scalar>}
2527
*/
2628
public static function item(string $destination, ?string $label = null, ?int $priority = null, array $attributes = []): array
2729
{

0 commit comments

Comments
 (0)