From 36fd7b5e5bca860f0c931b995fd179516d00d22a Mon Sep 17 00:00:00 2001 From: jeph864 Date: Wed, 12 Mar 2025 18:59:50 +0100 Subject: [PATCH 1/2] Fix 44459: Cast code's type in the Initialization of SoapFault --- webservice/soap/classes/class.ilSoapAdministration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webservice/soap/classes/class.ilSoapAdministration.php b/webservice/soap/classes/class.ilSoapAdministration.php index 4ce6f126c49e..706935aea6cc 100644 --- a/webservice/soap/classes/class.ilSoapAdministration.php +++ b/webservice/soap/classes/class.ilSoapAdministration.php @@ -196,7 +196,7 @@ protected function raiseError(string $a_message, $a_code) case self::NUSOAP: return new soap_fault($a_code, '', $a_message); case self::PHP5: - return new SoapFault($a_code, $a_message); + return new SoapFault((string)$a_code, $a_message); } return null; } From 3faf9e490cfe4ac2c62721432bc8d99c25dabf3c Mon Sep 17 00:00:00 2001 From: Jephte Abijuru <57417057+jeph864@users.noreply.github.com> Date: Thu, 13 Mar 2025 10:09:29 +0100 Subject: [PATCH 2/2] Update webservice/soap/classes/class.ilSoapAdministration.php Co-authored-by: Michael Jansen --- webservice/soap/classes/class.ilSoapAdministration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webservice/soap/classes/class.ilSoapAdministration.php b/webservice/soap/classes/class.ilSoapAdministration.php index 706935aea6cc..076f43bd7fca 100644 --- a/webservice/soap/classes/class.ilSoapAdministration.php +++ b/webservice/soap/classes/class.ilSoapAdministration.php @@ -196,7 +196,7 @@ protected function raiseError(string $a_message, $a_code) case self::NUSOAP: return new soap_fault($a_code, '', $a_message); case self::PHP5: - return new SoapFault((string)$a_code, $a_message); + return new SoapFault((string) $a_code, $a_message); } return null; }