wp-includes/php-ai-client/third-party/Nyholm/Psr7/Response.php:31$statusintoptional200$headersarrayoptional[]$bodystring|resource|WordPress\AiClientDependencies\Psr\Http\Message\StreamInterface|nulloptionalnull$versionstringoptional'1.1'$reasonstring|nulloptionalnull public function __construct(int $status = 200, array $headers = [], $body = null, string $version = '1.1', ?string $reason = null) { // If we got no body, defer initialization of the stream until Response::getBody() if ('' !== $body && null !== $body) { $this->stream = Stream::create($body); } $this->statusCode = $status; $this->setHeaders($headers); if (null === $reason && isset(self::PHRASES[$this->statusCode])) { $this->reasonPhrase = self::PHRASES[$status]; } else { $this->reasonPhrase = $reason ?? ''; } $this->protocol = $version; }5 changes between 6.7.7 and 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
$status added.verified against source$headers added.verified against source$body added.verified against source$version added.verified against source$reason added.verified against sourcesrc/wp-includes/php-ai-client/third-party/Nyholm/Psr7/Response.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.