Skip to content

Commit

Permalink
Fix phpstan v1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Jan 30, 2022
1 parent 4e6cc94 commit 66b765f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1790,9 +1790,9 @@ public function getIterator(): \Traversable

if (is_object($ret)) {
if ($ret->id_field) {
yield $ret->getId() => $ret; // @phpstan-ignore-line
yield $ret->getId() => $ret;
} else {
yield $ret; // @phpstan-ignore-line
yield $ret;
}
} else {
if ($this->id_field) {
Expand Down

0 comments on commit 66b765f

Please sign in to comment.