ErrorHandler.php
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);
        }
    }
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);
        }
    }
Convert errors not caught by the error handler to ErrorExceptions.