Skip to content

Commit 521fee8

Browse files
staabmdg
authored andcommitted
output buffering handlers return string
1 parent ad11b7f commit 521fee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CodeCoverage/Generators/AbstractGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function render(?string $file = null): void
7070
throw new \Exception("Unable to write to file '$file'.");
7171
}
7272

73-
ob_start(function (string $buffer) use ($handle) { fwrite($handle, $buffer); }, 4096);
73+
ob_start(function (string $buffer) use ($handle) { fwrite($handle, $buffer); return ''; }, 4096);
7474
try {
7575
$this->renderSelf();
7676
} catch (\Throwable $e) {

0 commit comments

Comments
 (0)