diff --git a/src/ResultIterator.php b/src/ResultIterator.php index c4c16795..0b200dbc 100644 --- a/src/ResultIterator.php +++ b/src/ResultIterator.php @@ -83,7 +83,7 @@ protected function __construct() */ public static function createResultIterator(QueryFactory $queryFactory, array $parameters, ObjectStorageInterface $objectStorage, ?string $className, TDBMService $tdbmService, MagicQuery $magicQuery, int $mode, LoggerInterface $logger): self { - $iterator = new static(); + $iterator = new self(); if ($mode !== TDBMService::MODE_CURSOR && $mode !== TDBMService::MODE_ARRAY) { throw new TDBMException("Unknown fetch mode: '".$mode."'"); }