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: LazyOpenStream.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
* Lazily reads or writes to a file that is opened only after an IO operation
[7] Fix | Delete
* take place on the stream.
[8] Fix | Delete
*/
[9] Fix | Delete
final class LazyOpenStream implements \YoastSEO_Vendor\Psr\Http\Message\StreamInterface
[10] Fix | Delete
{
[11] Fix | Delete
use StreamDecoratorTrait;
[12] Fix | Delete
/** @var string */
[13] Fix | Delete
private $filename;
[14] Fix | Delete
/** @var string */
[15] Fix | Delete
private $mode;
[16] Fix | Delete
/**
[17] Fix | Delete
* @var StreamInterface
[18] Fix | Delete
*/
[19] Fix | Delete
private $stream;
[20] Fix | Delete
/**
[21] Fix | Delete
* @param string $filename File to lazily open
[22] Fix | Delete
* @param string $mode fopen mode to use when opening the stream
[23] Fix | Delete
*/
[24] Fix | Delete
public function __construct(string $filename, string $mode)
[25] Fix | Delete
{
[26] Fix | Delete
$this->filename = $filename;
[27] Fix | Delete
$this->mode = $mode;
[28] Fix | Delete
// unsetting the property forces the first access to go through
[29] Fix | Delete
// __get().
[30] Fix | Delete
unset($this->stream);
[31] Fix | Delete
}
[32] Fix | Delete
/**
[33] Fix | Delete
* Creates the underlying stream lazily when required.
[34] Fix | Delete
*/
[35] Fix | Delete
protected function createStream() : \YoastSEO_Vendor\Psr\Http\Message\StreamInterface
[36] Fix | Delete
{
[37] Fix | Delete
return \YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::streamFor(\YoastSEO_Vendor\GuzzleHttp\Psr7\Utils::tryFopen($this->filename, $this->mode));
[38] Fix | Delete
}
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function