Skip to content

Commit

Permalink
Add collection generics for return value
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Oct 28, 2023
1 parent 27722a6 commit 5337900
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public static function fromArray(string $name, array $items): static
return new static($name, $items);
}

/** @return Collection<NavItem> */
public function getItems(): Collection
{
return collect($this->items);
Expand Down

0 comments on commit 5337900

Please sign in to comment.