We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 069183d commit cc7e064Copy full SHA for cc7e064
1 file changed
src/SqlPooledResult.php
@@ -86,7 +86,8 @@ private static function dispose(\Iterator $iterator): void
86
87
public function getIterator(): \Traversable
88
{
89
- return $this->iterator;
+ // Using a Generator to keep a reference to $this.
90
+ yield from $this->iterator;
91
}
92
93
public function fetchRow(): ?array
0 commit comments