WordPress\AiClientDependencies\Psr\Http\Message

StreamInterface::detachpublicWP 1.0

Separates any underlying resources from the stream.

After the stream has been detached, the stream is in an unusable state.

Method of the class: StreamInterface{}

No Hooks.

Returns

resource|null. Underlying PHP stream, if any

Usage

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

StreamInterface::detach() code WP 7.0

public function detach();