Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenk committed May 14, 2024
1 parent e7e1756 commit 0b07f61
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 @@ -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."'");
}
Expand Down

0 comments on commit 0b07f61

Please sign in to comment.