code: public static function handleFatal()
      {
          $error = error_get_last();
          if(null !== $error) {
              self::render($error["type"], $error["message"], $error["file"], $error["line"]);
          }
      }
docs: Handle fatal error.