Skip to content

Commit

Permalink
Set iterable type
Browse files Browse the repository at this point in the history
  • Loading branch information
martijngastkemper committed Jul 26, 2024
1 parent e1576de commit e0b400a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion functions/every.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Returns true if $callback returns true for every item in the collection.
*
* @param callable $fn
* @param array $collection
* @param array<mixed, mixed> $collection
* @return ($collection is null ? callable : bool)
*/
function every(callable $fn, iterable $collection = null) {
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,6 @@ parameters:
count: 1
path: functions/every.php

-
message: "#^Function Garp\\\\Functional\\\\every\\(\\) has parameter \\$collection with no value type specified in iterable type iterable\\.$#"
count: 1
path: functions/every.php

-
message: "#^Function Garp\\\\Functional\\\\flatten\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
Expand Down

0 comments on commit e0b400a

Please sign in to comment.