From 0a56c741e85b7837d3edb1b3a452c0a01dc70b55 Mon Sep 17 00:00:00 2001 From: aminovfariz Date: Fri, 5 Jun 2026 14:56:37 +0200 Subject: [PATCH] fix(phpstan): simplify http_response_header check in OidcHttpGateway --- core/Service/Auth/OidcHttpGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Service/Auth/OidcHttpGateway.php b/core/Service/Auth/OidcHttpGateway.php index bb71f5d..d88119c 100644 --- a/core/Service/Auth/OidcHttpGateway.php +++ b/core/Service/Auth/OidcHttpGateway.php @@ -49,7 +49,7 @@ class OidcHttpGateway $body = @file_get_contents($url, false, $ctx); $status = 0; $responseHeaders = []; - if (isset($http_response_header) && is_array($http_response_header)) { + if ($http_response_header !== []) { foreach ($http_response_header as $i => $line) { if ($i === 0 && preg_match('/HTTP\/[\d.]+ (\d+)/', $line, $m)) { $status = (int) $m[1];