From 49a7f3118d8eb1c35e9a4b28275a3dbe6cb0d3d4 Mon Sep 17 00:00:00 2001 From: odain Date: Fri, 19 Dec 2025 16:12:53 +0100 Subject: [PATCH] ci: fix Array to String Conversion in CallUrl with POST array of array --- tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index 0c4742379..12ae32538 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -14,7 +14,6 @@ use ReflectionMethod; use SetupUtils; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpKernel\KernelInterface; - use const DEBUG_BACKTRACE_IGNORE_ARGS; /** @@ -663,7 +662,7 @@ abstract class ItopTestCase extends KernelTestCase curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt_array($ch, $aCurlOptions); - curl_setopt($ch, CURLOPT_POSTFIELDS, $aPostFields); + curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($aPostFields)); $sOutput = curl_exec($ch);