code: public static function fatal()
      {
          $e = error_get_last();
  
          if ($e !== null && (error_reporting() & $e['type']) !== 0) {
              ErrorHandler::exception(new \ErrorException($e['message'], $e['type'], 0, $e['file'], $e['line']));
  
              exit(1);
          }
      }
docs: Convert errors not caught by the error handler to ErrorExceptions.