cloggier
↑
/wp-includes/php-ai-client/third-party/Nyholm
marsupiataab
hypermuffing
cloggier
hypermuffing
marsupiataab
Factory/
cloggier
marsupiataab
MessageTrait.php
7,466 B
cloggier
marsupiataab
Request.php
1,504 B
cloggier
marsupiataab
RequestTrait.php
3,041 B
cloggier
marsupiataab
Response.php
4,335 B
cloggier
marsupiataab
ServerRequest.php
5,069 B
cloggier
marsupiataab
Stream.php
11,117 B
cloggier
marsupiataab
StreamTrait.php
1,596 B
cloggier
marsupiataab
UploadedFile.php
5,544 B
cloggier
marsupiataab
Uri.php
9,737 B
cloggier
marsupiataab
<?php declare (strict_types=1); namespace WordPress\AiClientDependencies\Nyholm\Psr7; use WordPress\AiClientDependencies\Psr\Http\Message\StreamInterface; use WordPress\AiClientDependencies\Symfony\Component\Debug\ErrorHandler as SymfonyLegacyErrorHandler; use WordPress\AiClientDependencies\Symfony\Component\ErrorHandler\ErrorHandler as SymfonyErrorHandler; if (\PHP_VERSION_ID >= 70400 || (new \ReflectionMethod(StreamInterface::class, '__toString'))->hasReturnType()) { /** * @internal */ trait StreamTrait { public function __toString(): string { if ($this->isSeekable()) { $this->seek(0); } return $this->getContents(); } } } else { /** * @internal */ trait StreamTrait { /** * @return string */ public function __toString() { try { if ($this->isSeekable()) { $this->seek(0); } return $this->getContents(); } catch (\Throwable $e) { if (\is_array($errorHandler = \set_error_handler('var_dump'))) { $errorHandler = $errorHandler[0] ?? null; } \restore_error_handler(); if ($e instanceof \Error || $errorHandler instanceof SymfonyErrorHandler || $errorHandler instanceof SymfonyLegacyErrorHandler) { return \trigger_error((string) $e, \E_USER_ERROR); } return ''; } } } }
cloggier