Skip to content

Commit

Permalink
Merge pull request #394 from gharlan/patch-1
Browse files Browse the repository at this point in the history
reduce method: more accurate types
  • Loading branch information
greg0ire authored Feb 22, 2024
2 parents 3439e45 + 2270a54 commit 2ccb7c5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ReadableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,11 +229,11 @@ public function findFirst(Closure $p);
* Applies iteratively the given function to each element in the collection,
* so as to reduce the collection to a single value.
*
* @psalm-param Closure(TReturn|TInitial|null, T):(TInitial|TReturn) $func
* @psalm-param TInitial|null $initial
* @psalm-param Closure(TReturn|TInitial, T):TReturn $func
* @psalm-param TInitial $initial
*
* @return mixed
* @psalm-return TReturn|TInitial|null
* @psalm-return TReturn|TInitial
*
* @psalm-template TReturn
* @psalm-template TInitial
Expand Down

0 comments on commit 2ccb7c5

Please sign in to comment.