outputBuffer as $o) { if ($o['code'] & self::LOG) { $this->log($o['controller']->getThrowable(), json_encode([ 'class' => $o['class'], 'code' => $o['code'], 'file' => $o['file'], 'line' => $o['line'], 'message' => $o['message'] ])); } if (($o['code'] & self::OUTPUT) === 0) { continue; } $o = $this->cleanOutputThrowable($o); if ($this->_print) { if (!$this->_printJSON) { $oo = ''; foreach ($o['frames'] as $f) { if (!isset($f['args'])) { continue; } $oo .= $this->serializeArgs($f['args']) . "\n"; } $oo = rtrim($oo); } else { $oo = json_encode($o, \JSON_THROW_ON_ERROR); } $this->print($oo); } $this->output[] = $o; } } }