Skip to content

Commit

Permalink
Fix AbstractQueryDataReader::readOne()
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik committed Jan 15, 2024
1 parent 145df52 commit 3967da3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AbstractQueryDataReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,9 +372,7 @@ public function readOne(): array|object|null
return $key === null ? null : $this->data[$key];
}

$current = $this->withLimit(1)->getIterator()->current();

return $current === null ? null : $this->createItem($current);
return $this->withLimit(1)->getIterator()->current();
}

/**
Expand Down

0 comments on commit 3967da3

Please sign in to comment.