You are here

public function FnStream::detach in Lockr 7.3

Separates any underlying resources from the stream.

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

Return value

resource|null Underlying PHP stream, if any

Overrides StreamInterface::detach

File

vendor/guzzlehttp/psr7/src/FnStream.php, line 94

Class

FnStream
Compose stream implementations based on a hash of functions.

Namespace

GuzzleHttp\Psr7

Code

public function detach() {
  return call_user_func($this->_fn_detach);
}