YoastSEO_Vendor\GuzzleHttp\Psr7
Stream::read() public Yoast 1.0
{} Это метод класса: Stream{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Stream = new Stream(); $Stream->read( $length );
- $length (обязательный)
- -
Код Stream::read() Stream::read Yoast 16.1.1
public function read($length)
{
if (!isset($this->stream)) {
throw new \RuntimeException('Stream is detached');
}
if (!$this->readable) {
throw new \RuntimeException('Cannot read from non-readable stream');
}
if ($length < 0) {
throw new \RuntimeException('Length parameter cannot be negative');
}
if (0 === $length) {
return '';
}
$string = \fread($this->stream, $length);
if (\false === $string) {
throw new \RuntimeException('Unable to read from stream');
}
return $string;
}