diff options
| author | Thomas Hackl <hackl@data-quest.de> | 2023-11-13 14:27:59 +0000 |
|---|---|---|
| committer | Thomas Hackl <hackl@data-quest.de> | 2023-11-13 15:32:27 +0100 |
| commit | c3aee36761ea72abc7e7bc9402c0cf56d3ee0fc4 (patch) | |
| tree | a1b6b459b511b5e1dd857c35a00d8d4e9d334fe6 | |
| parent | df5ee234d78ccf3c9f4ea11d8add9c96fee59316 (diff) | |
Resolve "Fehlermeldungen mit PHP 8 in der SOAP-Schnittstelle"
Closes #3454
Merge request studip/studip!2349
| -rw-r--r-- | vendor/studip_ws/dispatcher.php | 1 | ||||
| -rw-r--r-- | vendor/studip_ws/type.php | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/vendor/studip_ws/dispatcher.php b/vendor/studip_ws/dispatcher.php index d472a59..e7a3caa 100644 --- a/vendor/studip_ws/dispatcher.php +++ b/vendor/studip_ws/dispatcher.php @@ -125,6 +125,7 @@ class Studip_Ws_Dispatcher { return $this->throw_exception('No service responds to "%s".', $method0); $service = $this->api_methods[$method0]->service; + $argument_array = array_values($argument_array); # calling before filter $before = $service->before_filter($method0, $argument_array); diff --git a/vendor/studip_ws/type.php b/vendor/studip_ws/type.php index 0085e4f..7fe2264 100644 --- a/vendor/studip_ws/type.php +++ b/vendor/studip_ws/type.php @@ -142,7 +142,7 @@ class Studip_Ws_Type { * * @todo name ist falsch */ - function get_element_type($type) { + public static function get_element_type($type) { if (is_array($type)) return current($type); trigger_error(sprintf('\$type has to be an array, but is: "%s"', @@ -159,7 +159,7 @@ class Studip_Ws_Type { * * @return type <description> */ - function is_complex_type($type0) { + public static function is_complex_type($type0) { $type = Studip_Ws_Type::get_type($type0); return $type === STUDIP_WS_TYPE_ARRAY || $type === STUDIP_WS_TYPE_STRUCT; } @@ -172,7 +172,7 @@ class Studip_Ws_Type { * * @return type <description> */ - function is_primitive_type($type) { + public static function is_primitive_type($type) { return !Studip_Ws_Type::is_complex_type($type); } @@ -184,7 +184,7 @@ class Studip_Ws_Type { * * @return type <description> */ - function get_struct_elements($struct) { + public static function get_struct_elements($struct) { # check argument; has to be a class if (!class_exists($struct)) { |
