wp-includes/php-ai-client/third-party/Nyholm/Psr7/Stream.php:52Creates a new PSR-7 stream.
$bodystring|resource|WordPress\AiClientDependencies\Psr\Http\Message\StreamInterfaceoptional'' public static function create($body = ''): StreamInterface { if ($body instanceof StreamInterface) { return $body; } if (\is_string($body)) { if (200000 <= \strlen($body)) { $body = self::openZvalStream($body); } else { $resource = \fopen('php://memory', 'r+'); \fwrite($resource, $body); \fseek($resource, 0); $body = $resource; } } if (!\is_resource($body)) { throw new \InvalidArgumentException('First argument to Stream::create() must be a string, resource or StreamInterface'); } return new self($body); }Unchanged from 7.0.4 through 7.1.0.
Signature, return type and hooks compared across 2 parsed releases.
src/wp-includes/php-ai-client/third-party/Nyholm/Psr7/Stream.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.