Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 5, 2024
1 parent e72d0e6 commit 9a58ddf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/CursorCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ public function getAutoIterator(bool $iterateBackwards = false): LazyCollection
$page = $this;

return new LazyCollection(function () use ($page, $iterateBackwards): Generator {
$page->setAutoHydrate();

while (true) {
$page->setAutoHydrate();

foreach ($page as $item) {
yield $item;
}
Expand Down

0 comments on commit 9a58ddf

Please sign in to comment.