Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/wordpres.../vendor_p.../guzzleht.../psr7/src
File: InflateStream.php
<?php
[0] Fix | Delete
[1] Fix | Delete
declare (strict_types=1);
[2] Fix | Delete
namespace YoastSEO_Vendor\GuzzleHttp\Psr7;
[3] Fix | Delete
[4] Fix | Delete
use YoastSEO_Vendor\Psr\Http\Message\StreamInterface;
[5] Fix | Delete
/**
[6] Fix | Delete
* Uses PHP's zlib.inflate filter to inflate zlib (HTTP deflate, RFC1950) or gzipped (RFC1952) content.
[7] Fix | Delete
*
[8] Fix | Delete
* This stream decorator converts the provided stream to a PHP stream resource,
[9] Fix | Delete
* then appends the zlib.inflate filter. The stream is then converted back
[10] Fix | Delete
* to a Guzzle stream resource to be used as a Guzzle stream.
[11] Fix | Delete
*
[12] Fix | Delete
* @see https://datatracker.ietf.org/doc/html/rfc1950
[13] Fix | Delete
* @see https://datatracker.ietf.org/doc/html/rfc1952
[14] Fix | Delete
* @see https://www.php.net/manual/en/filters.compression.php
[15] Fix | Delete
*/
[16] Fix | Delete
final class InflateStream implements \YoastSEO_Vendor\Psr\Http\Message\StreamInterface
[17] Fix | Delete
{
[18] Fix | Delete
use StreamDecoratorTrait;
[19] Fix | Delete
/** @var StreamInterface */
[20] Fix | Delete
private $stream;
[21] Fix | Delete
public function __construct(\YoastSEO_Vendor\Psr\Http\Message\StreamInterface $stream)
[22] Fix | Delete
{
[23] Fix | Delete
$resource = \YoastSEO_Vendor\GuzzleHttp\Psr7\StreamWrapper::getResource($stream);
[24] Fix | Delete
// Specify window=15+32, so zlib will use header detection to both gzip (with header) and zlib data
[25] Fix | Delete
// See https://www.zlib.net/manual.html#Advanced definition of inflateInit2
[26] Fix | Delete
// "Add 32 to windowBits to enable zlib and gzip decoding with automatic header detection"
[27] Fix | Delete
// Default window size is 15.
[28] Fix | Delete
\stream_filter_append($resource, 'zlib.inflate', \STREAM_FILTER_READ, ['window' => 15 + 32]);
[29] Fix | Delete
$this->stream = $stream->isSeekable() ? new \YoastSEO_Vendor\GuzzleHttp\Psr7\Stream($resource) : new \YoastSEO_Vendor\GuzzleHttp\Psr7\NoSeekStream(new \YoastSEO_Vendor\GuzzleHttp\Psr7\Stream($resource));
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function