From a03fc8cb6357ff2be13a2b43e665ed002f77bc73 Mon Sep 17 00:00:00 2001 From: "benedikt.schaller" Date: Mon, 10 Feb 2025 11:36:42 +0100 Subject: [PATCH] =?UTF-8?q?ACFIVE-48435=20H=C3=A4ufige=20Fehlermeldung=20a?= =?UTF-8?q?uf=20IU=20Cron-Service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fix handling for GET requests --- src/Http/Url/Url.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Http/Url/Url.php b/src/Http/Url/Url.php index 3e93bb7..c80a5b0 100644 --- a/src/Http/Url/Url.php +++ b/src/Http/Url/Url.php @@ -44,7 +44,8 @@ private static function createFromCliRequest(array $serverArray): Url private static function isCliRequest(array $serverArray): bool { - return ! empty($serverArray['argv']); + # check for argv in server array only to fake the result for unit tests + return ! empty($serverArray['argv']) && PHP_SAPI === 'cli'; } /**