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);
        }
    }