Skip to content

Commit

Permalink
Merge pull request #245 from dsavina/fix/empty-iterator
Browse files Browse the repository at this point in the history
Return `static` instead of `self` in ResultIterator::createEmptyIterator
  • Loading branch information
moufmouf authored Feb 11, 2021
2 parents ff08c45 + b03c546 commit c702860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResultIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public static function createResultIterator(QueryFactory $queryFactory, array $p

public static function createEmpyIterator(): self
{
$iterator = new self();
$iterator = new static();
$iterator->totalCount = 0;
$iterator->logger = new NullLogger();
return $iterator;
Expand Down

0 comments on commit c702860

Please sign in to comment.