Skip to content

Commit

Permalink
Merge pull request #290 from sebdesign/main
Browse files Browse the repository at this point in the history
Add generic return type for `DataCollection::toCollection()`
  • Loading branch information
rubenvanassche authored Dec 21, 2022
2 parents 1d005c7 + c9452d3 commit 67b8d72
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DataCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ public function items(): array
return $this->items->all();
}

/**
* @return Enumerable<TKey, TValue>
*/
public function toCollection(): Enumerable
{
return $this->items;
Expand Down

0 comments on commit 67b8d72

Please sign in to comment.