fix: relaxes if ob was not started

This commit is contained in:
Nuno Maduro
2023-02-18 14:47:27 +00:00
parent 7fc12613a8
commit 0ce70a0180

View File

@ -40,7 +40,7 @@ final class KernelDump
*/ */
public function disable(): void public function disable(): void
{ {
ob_clean(); @ob_clean();
if ($this->buffer !== '') { if ($this->buffer !== '') {
$this->flush('INFO'); $this->flush('INFO');
@ -52,7 +52,7 @@ final class KernelDump
*/ */
public function shutdown(): void public function shutdown(): void
{ {
ob_clean(); @ob_clean();
if ($this->buffer !== '') { if ($this->buffer !== '') {
$this->flush('ERROR'); $this->flush('ERROR');