Skip to content

Commit

Permalink
Merge pull request #355 from VincentLanglet/count
Browse files Browse the repository at this point in the history
Use more precise return type for count method
  • Loading branch information
greg0ire committed Dec 8, 2022
2 parents 6dcf403 + e70d9e7 commit 425857d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ArrayCollection.php
Expand Up @@ -296,7 +296,11 @@ public function getValues()
return array_values($this->elements);
}

/** @return int */
/**
* {@inheritDoc}
*
* @return int<0, max>
*/
#[ReturnTypeWillChange]
public function count()
{
Expand Down

0 comments on commit 425857d

Please sign in to comment.