Skip to content

Commit

Permalink
Merge pull request #640 from joelbutcher/fix/data-collection-type-hin…
Browse files Browse the repository at this point in the history
…ting

[Fix] Static analysis of `DataCollection::map(...)` and `DataCollection::through(...)` methods
  • Loading branch information
rubenvanassche authored Feb 9, 2024
2 parents 69686b7 + ed87781 commit 8550a10
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Concerns/EnumerableMethods.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
/**
* @template TKey of array-key
* @template TValue
* @template TMapValue
*
* @implements \ArrayAccess<TKey, TValue>
*/
Expand All @@ -15,7 +16,7 @@ trait EnumerableMethods
/**
* @deprecated In v5, use a regular Laravel collection instead
*
* @param callable(TValue, TKey): TValue $through
* @param callable(TValue, TKey): TMapValue $through
*
* @return static
*/
Expand All @@ -31,7 +32,7 @@ public function through(callable $through): static
/**
* @deprecated In v5, use a regular Laravel collection instead
*
* @param callable(TValue, TKey): TValue $map
* @param callable(TValue, TKey): TMapValue $map
*
* @return static
*/
Expand Down

0 comments on commit 8550a10

Please sign in to comment.