Пример #1
0
 /**
  * Handle fatal errors and such
  *
  * @codeCoverageIgnore
  */
 public function handleShutdown()
 {
     $error = error_get_last();
     if ($error && Severity::fromPhpErrorNo($error['type']) >= $this->errorHandler->getMinSeverityOnShutdown()) {
         $error = new ErrorException($error['message'], $error['type'], $error['file'], $error['line']);
         $this->handleError($error);
     }
 }