Skip to content

Commit be2c664

Browse files
author
rkr
committed
- Fixed bug in Kir\MySQL\Builder\Helpers\LazyRowGenerator::generate were the callback was called without the actual row
1 parent 6be24cd commit be2c664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder/Helpers/LazyRowGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function generate(QueryStatement $statement, Closure $callback = null) {
2727
$row = FieldValueConverter::convertValues($row, $columnDefinitions);
2828
}
2929
if($callback !== null) {
30-
$row = call_user_func($callback);
30+
$row = call_user_func($callback, $row);
3131
if($row !== null) {
3232
yield $row;
3333
}

0 commit comments

Comments
 (0)