Skip to content

Commit

Permalink
use CursorInterface&Iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 5, 2023
1 parent d3c7dce commit ada91ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ODM/MongoDB/Aggregation/Aggregation.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getIterator(): Iterator
return $this->prepareIterator($cursor);
}

private function prepareIterator(CursorInterface $cursor): Iterator
private function prepareIterator(CursorInterface&Iterator $cursor): Iterator
{
if ($this->classMetadata) {
$cursor = new HydratingIterator($cursor, $this->dm->getUnitOfWork(), $this->classMetadata);
Expand Down

0 comments on commit ada91ed

Please sign in to comment.