Skip to content

Commit

Permalink
Fix AbstractQueryDataReader::readOne() (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
vjik authored Jan 16, 2024
1 parent 145df52 commit fa08911
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 fa08911

Please sign in to comment.