Skip to content

Commit ea4dcdb

Browse files
authored
Merge pull request #43 from boesing/bugfix/invalid-return-type-count
bugfix: implement `Countable::count` to provide `0|positive-int` as return type
2 parents e208c7f + 88449d7 commit ea4dcdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ArrayInterface.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ public function allSatisfy(callable $callback): bool;
5555
* @psalm-param callable(TValue):bool $callback
5656
*/
5757
public function exists(callable $callback): bool;
58+
59+
/**
60+
* @return 0|positive-int
61+
*/
62+
public function count(): int;
5863
}

0 commit comments

Comments
 (0)