wp-includes/php-ai-client/third-party/Nyholm/Psr7/ServerRequest.php:41$methodstring$uristring|WordPress\AiClientDependencies\Psr\Http\Message\UriInterface$headersarrayoptional[]$bodystring|resource|WordPress\AiClientDependencies\Psr\Http\Message\StreamInterface|nulloptionalnull$versionstringoptional'1.1'$serverParamsarrayoptional[] public function __construct(string $method, $uri, array $headers = [], $body = null, string $version = '1.1', array $serverParams = []) { $this->serverParams = $serverParams; if (!$uri instanceof UriInterface) { $uri = new Uri($uri); } $this->method = $method; $this->uri = $uri; $this->setHeaders($headers); $this->protocol = $version; \parse_str($uri->getQuery(), $this->queryParams); if (!$this->hasHeader('Host')) { $this->updateHostFromUri(); } // If we got no body, defer initialization of the stream until ServerRequest::getBody() if ('' !== $body && null !== $body) { $this->stream = Stream::create($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/ServerRequest.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.