Skip to content

Commit

Permalink
Mark closure arguments as always-provided
Browse files Browse the repository at this point in the history
Follow up of 4e5e58f .
  • Loading branch information
greg0ire committed Sep 30, 2022
1 parent 86a79ea commit 1ca4949
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ReadableCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public function indexOf(mixed $element);
* Returns the first element of this collection that satisfies the predicate p.
*
* @param Closure $p The predicate.
* @psalm-param Closure(TKey=, T=):bool $p
* @psalm-param Closure(TKey, T):bool $p
*
* @return mixed The first element respecting the predicate,
* null if no element respects the predicate.
Expand Down

0 comments on commit 1ca4949

Please sign in to comment.