WordPress\AiClientDependencies\Nyholm\Psr7

Stream::detachpublicWP 1.0

Method of the class: Stream{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

Stream::detach() code WP 7.0

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;
}