You are here

public function StreamWrapper::stream_cast in Auth0 Single Sign On 8.2

File

vendor/guzzlehttp/psr7/src/StreamWrapper.php, line 109

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

public function stream_cast($cast_as) {
  $stream = clone $this->stream;
  return $stream
    ->detach();
}