From 0b07f61af6e95fc1e70462bf06dde74da956f09d Mon Sep 17 00:00:00 2001 From: Kevin NGUYEN Date: Tue, 14 May 2024 17:51:05 +0200 Subject: [PATCH] Fix PHPStan --- src/ResultIterator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."'"); }