public static final function gzipDecode($data, array $options = null): array
    {
        $encoder = new GzipEncoder($options);

        return [$encoder->decode($data), $encoder->hasError()
            ? new EncoderException('GZip Error: '. $encoder->getError()) : null];
    }
public static final function gzipDecode($data, array $options = null): array
    {
        $encoder = new GzipEncoder($options);

        return [$encoder->decode($data), $encoder->hasError()
            ? new EncoderException('GZip Error: '. $encoder->getError()) : null];
    }
public static final function gzipDecode ( $ data , array $ options = null ) : array { $ encoder = new GzipEncoder ( $ options ) ; return [ $ encoder -> decode ( $ data ) , $ encoder -> hasError ( ) ? new EncoderException ( 'GZip Error: ' . $ encoder -> getError ( ) ) : null ] ; }
Gzip decode.
@param  ?string     $data
@param  array|null $options
@return ?string
Gzip decode .