Skip to content

Commit

Permalink
Merge pull request #340 from greg0ire/no-optional
Browse files Browse the repository at this point in the history
Mark closure arguments as always-provided
  • Loading branch information
greg0ire authored Sep 30, 2022
2 parents 86a79ea + 1ca4949 commit d766a45
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 d766a45

Please sign in to comment.