From 1b05d493fea952ee1c533f26be4196035117cbb6 Mon Sep 17 00:00:00 2001 From: Tigrov Date: Sun, 14 Apr 2024 21:09:24 +0700 Subject: [PATCH] Remove redundant check --- src/QueryBuilder/AbstractDMLQueryBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/QueryBuilder/AbstractDMLQueryBuilder.php b/src/QueryBuilder/AbstractDMLQueryBuilder.php index e7af38e74..6a1a290c1 100644 --- a/src/QueryBuilder/AbstractDMLQueryBuilder.php +++ b/src/QueryBuilder/AbstractDMLQueryBuilder.php @@ -147,11 +147,11 @@ protected function prepareTraversable(Traversable $rows): Iterator|array $rows = $rows->getIterator(); } - if ($rows instanceof Iterator && !$rows->valid()) { + /** @var Iterator $rows */ + if (!$rows->valid()) { return []; } - /** @var Iterator $rows */ return $rows; }