src/Leevel/Kernel/Bootstrap/RegisterRuntime.php
protected function formatErrorException(array $error): ErrorException
    {
        return new ErrorException(
            (string) ($error['message']), (int) ($error['type']), 0, (string) ($error['file']), (int) ($error['line'])
        );
    }
protected function formatErrorException(array $error): ErrorException
    {
        return new ErrorException(
            (string) ($error['message']), (int) ($error['type']), 0, (string) ($error['file']), (int) ($error['line'])
        );
    }
格式化致命错误信息.

@param array $error

@return \ErrorException