Skip to content

Commit

Permalink
Merge pull request #318 from VincentLanglet/patch-1
Browse files Browse the repository at this point in the history
Add psalm-assert-if-true to `AbstractLazyCollection::isInitialized`
  • Loading branch information
greg0ire authored Aug 23, 2022
2 parents 9fcb623 + 37e8bb5 commit d93dbc5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Doctrine/Common/Collections/AbstractLazyCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,8 @@ public function offsetUnset($offset)
* Is the lazy collection already initialized?
*
* @return bool
*
* @psalm-assert-if-true Collection<TKey,T> $this->collection
*/
public function isInitialized()
{
Expand Down

0 comments on commit d93dbc5

Please sign in to comment.