protected function createExceptionMessages($exception) { $message = []; while ($exception) { $report = Reporter::createReport($exception); $message[] = implode("\n", $report); $exception = $exception->getPrevious(); } return implode("\n", $message); }
public function errorHandler($errno, $errstr, $errfile, $errline, $errargs) { throw ErrorReporter::buildErrorException($errno, $errstr, $errfile, $errline, $errargs); }