Skip to content

Commit 88449d7

Browse files
committed
bugfix: implement Countable::count to provide 0|positive-int as return type
Signed-off-by: Maximilian Bösing <[email protected]>
1 parent bd8a96b commit 88449d7

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)