WordPress\AiClientDependencies\Nyholm\Psr7

Stream::detach │ public │ WP 1.0

Метод класса: Stream{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$Stream = new Stream();
$Stream->detach();

Код Stream::detach() WP 7.1.2

public function detach()
{
    if (!isset($this->stream)) {
        return null;
    }
    $result = $this->stream;
    unset($this->stream);
    $this->size = $this->uri = null;
    $this->readable = $this->writable = $this->seekable = \false;
    return $result;
}