From 2924407450b00da6d5f615f25aa162b9e891dda8 Mon Sep 17 00:00:00 2001 From: aminovfariz Date: Tue, 23 Jun 2026 10:40:26 +0200 Subject: [PATCH] fix(oidc): replace deprecated $http_response_header with http_get_last_response_headers() PHP 8.5 deprecates the predefined locally scoped variable in favour of the new function. Co-Authored-By: Claude Sonnet 4.6 --- core/Service/Auth/OidcHttpGateway.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/Service/Auth/OidcHttpGateway.php b/core/Service/Auth/OidcHttpGateway.php index 2c77ff8..7ba5908 100644 --- a/core/Service/Auth/OidcHttpGateway.php +++ b/core/Service/Auth/OidcHttpGateway.php @@ -47,6 +47,7 @@ class OidcHttpGateway $body = @file_get_contents($url, false, $ctx); $status = 0; $responseHeaders = []; + $http_response_header = http_get_last_response_headers() ?? []; if ($http_response_header !== []) { foreach ($http_response_header as $i => $line) { if ($i === 0 && preg_match('/HTTP\/[\d.]+ (\d+)/', $line, $m)) {