Skip to content

Commit 9ef975e

Browse files
committed
- Polyfill for the fetchRowsLazy yield/iterator
1 parent 5271f8e commit 9ef975e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/Databases/MySQLTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ public function testFetchRowsLazy() {
201201
$row['test'] = 10;
202202
return $row;
203203
});
204-
if($rows instanceof Traversable) {
205-
$rows = iterator_to_array($rows);
206-
}
204+
$rows = iterator_to_array($rows);
207205
$this->assertEquals([['id' => 1, 'test' => 10]], $rows);
208206
}
209207
}

0 commit comments

Comments
 (0)