Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. StreamWrapper.php

function StreamWrapper::stream_cast

Return value

resource|false

File

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

Class

StreamWrapper
Converts Guzzle streams into PHP stream resources.

Namespace

GuzzleHttp\Psr7

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal