Skip to content

Commit

Permalink
Use yield from inside of filter()
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Dec 18, 2022
1 parent 2d1e755 commit da03252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/php/xp/web/dev/Console.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function filter($req, $res, $invocation) {

try {
ob_start();
foreach ($invocation->proceed($req, $buffer) ?? [] as $_) { }
yield from $invocation->proceed($req, $buffer);
} finally {
$buffer->end();
$debug= ob_get_clean();
Expand Down

0 comments on commit da03252

Please sign in to comment.