fix risky test

This commit is contained in:
Dennis Eichhorn 2022-09-30 16:56:44 +02:00
parent 328e9c547e
commit 751ce51220

View File

@ -300,11 +300,10 @@ abstract class ViewAbstract implements RenderableInterface
$ob = (string) \json_encode($includeData);
}
} catch (\Throwable $e) {
if ($this->isBuffered) {
\ob_end_clean();
}
$ob = '';
if ($this->isBuffered) {
$ob = \ob_get_clean();
}
}
return $ob;