Skip to content

Commit

Permalink
Merge pull request #43 from boesing/bugfix/invalid-return-type-count
Browse files Browse the repository at this point in the history
bugfix: implement `Countable::count` to provide `0|positive-int` as return type
  • Loading branch information
boesing committed Apr 29, 2021
2 parents e208c7f + 88449d7 commit ea4dcdb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ArrayInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,9 @@ public function allSatisfy(callable $callback): bool;
* @psalm-param callable(TValue):bool $callback
*/
public function exists(callable $callback): bool;

/**
* @return 0|positive-int
*/
public function count(): int;
}

0 comments on commit ea4dcdb

Please sign in to comment.