Skip to content

Commit cb0795b

Browse files
committed
output buffering handlers return string
1 parent 2b4c9ad commit cb0795b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Utils/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Helpers
2424
*/
2525
public static function capture(callable $func): string
2626
{
27-
ob_start(function () {});
27+
ob_start(fn() => '');
2828
try {
2929
$func();
3030
return ob_get_clean();

src/Utils/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ public function __call(string $name, array $args): mixed
773773

774774
public function __clone()
775775
{
776-
ob_start(function () {});
776+
ob_start(fn() => '');
777777
imagepng($this->image, null, 0);
778778
$this->setImageResource(imagecreatefromstring(ob_get_clean()));
779779
}

0 commit comments

Comments
 (0)