Skip to content

Commit

Permalink
Merge pull request #134 from VincentLanglet/count
Browse files Browse the repository at this point in the history
Use more precise count return type
  • Loading branch information
orklah authored Dec 10, 2022
2 parents 1b670de + 7ac0ecf commit 6e388e1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stubs/ArrayCollection.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ class ArrayCollection implements Collection, Selectable
* @psalm-mutation-free
*/
public function isEmpty();

/**
* @return int<0, max>
*/
public function count();
}

0 comments on commit 6e388e1

Please sign in to comment.