Skip to content

Commit

Permalink
Add array generics for static helper method parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent d5b24d8 commit 4a8d8d9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct(string $label, array $items, ?int $priority = null)
$this->items = $items;
}

/** @param array<NavItem> $items */
public static function fromArray(string $name, array $items): static
{
return new static($name, $items);
Expand Down

0 comments on commit 4a8d8d9

Please sign in to comment.