YoastSEO_Vendor\GuzzleHttp\Psr7
Stream::write() public Yoast 1.0
{} Это метод класса: Stream{}
Хуков нет.
Возвращает
null
. Ничего.
Использование
$Stream = new Stream(); $Stream->write( $string );
- $string (обязательный)
- -
Код Stream::write() Stream::write Yoast 16.1.1
public function write($string)
{
if (!isset($this->stream)) {
throw new \RuntimeException('Stream is detached');
}
if (!$this->writable) {
throw new \RuntimeException('Cannot write to a non-writable stream');
}
// We can't know the size after writing anything
$this->size = null;
$result = \fwrite($this->stream, $string);
if ($result === \false) {
throw new \RuntimeException('Unable to write to stream');
}
return $result;
}