From 896cc22c2335d53449f77576e43aec31acf2c9db Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 20 Jul 2026 23:53:56 +0000 Subject: [PATCH 1/2] Update guzzlehttp/guzzle requirement in the stable-updates group Updates the requirements on [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) to permit the latest version. Updates `guzzlehttp/guzzle` to 8.0.0 - [Release notes](https://github.com/guzzle/guzzle/releases) - [Changelog](https://github.com/guzzle/guzzle/blob/8.0/CHANGELOG.md) - [Commits](https://github.com/guzzle/guzzle/compare/7.9.0...8.0.0) --- updated-dependencies: - dependency-name: guzzlehttp/guzzle dependency-version: 8.0.0 dependency-type: direct:production dependency-group: stable-updates ... Signed-off-by: dependabot[bot] --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index a11c140..541be5f 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "ext-json": "*", "ext-openssl": "*", "ext-curl": "*", - "guzzlehttp/guzzle": "^7.9" + "guzzlehttp/guzzle": "^8.0" }, "license": "MIT", "autoload": { From cf58dae29012683b827eb9c0088f5774ac7d2508 Mon Sep 17 00:00:00 2001 From: Santhosh Raju Date: Thu, 23 Jul 2026 10:08:54 +0200 Subject: [PATCH 2/2] Handle false return from getallheaders() guzzlehttp/guzzle 8.0 dropped its ralouphie/getallheaders polyfill dependency, so Psalm now analyzes the native getallheaders() signature, which can return false. Fall back to building the header array from $_SERVER in that case, fixing the FalsableReturnStatement error in the Static analysis CI job. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Htg547gDj3wLyXghoK1RaH --- src/HelloRequest/HelloRequest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HelloRequest/HelloRequest.php b/src/HelloRequest/HelloRequest.php index 856baf3..779e862 100644 --- a/src/HelloRequest/HelloRequest.php +++ b/src/HelloRequest/HelloRequest.php @@ -76,7 +76,10 @@ public function fetchHeader(string $key, $default = null) private function getAllHeaders(): array { if (function_exists('getallheaders')) { - return getallheaders(); + $headers = getallheaders(); + if ($headers !== false) { + return $headers; + } } $headers = [];