Skip to content
Snippets Groups Projects
Commit 61d7945a authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Fehlermeldungen mit PHP 8 in der SOAP-Schnittstelle"

Closes #3454

Merge request studip/studip!2349
parent 9ba053ad
No related branches found
No related tags found
No related merge requests found
...@@ -125,6 +125,7 @@ class Studip_Ws_Dispatcher { ...@@ -125,6 +125,7 @@ class Studip_Ws_Dispatcher {
return $this->throw_exception('No service responds to "%s".', $method0); return $this->throw_exception('No service responds to "%s".', $method0);
$service = $this->api_methods[$method0]->service; $service = $this->api_methods[$method0]->service;
$argument_array = array_values($argument_array);
# calling before filter # calling before filter
$before = $service->before_filter($method0, $argument_array); $before = $service->before_filter($method0, $argument_array);
......
...@@ -142,7 +142,7 @@ class Studip_Ws_Type { ...@@ -142,7 +142,7 @@ class Studip_Ws_Type {
* *
* @todo name ist falsch * @todo name ist falsch
*/ */
function get_element_type($type) { public static function get_element_type($type) {
if (is_array($type)) if (is_array($type))
return current($type); return current($type);
trigger_error(sprintf('\$type has to be an array, but is: "%s"', trigger_error(sprintf('\$type has to be an array, but is: "%s"',
...@@ -159,7 +159,7 @@ class Studip_Ws_Type { ...@@ -159,7 +159,7 @@ class Studip_Ws_Type {
* *
* @return type <description> * @return type <description>
*/ */
function is_complex_type($type0) { public static function is_complex_type($type0) {
$type = Studip_Ws_Type::get_type($type0); $type = Studip_Ws_Type::get_type($type0);
return $type === STUDIP_WS_TYPE_ARRAY || $type === STUDIP_WS_TYPE_STRUCT; return $type === STUDIP_WS_TYPE_ARRAY || $type === STUDIP_WS_TYPE_STRUCT;
} }
...@@ -172,7 +172,7 @@ class Studip_Ws_Type { ...@@ -172,7 +172,7 @@ class Studip_Ws_Type {
* *
* @return type <description> * @return type <description>
*/ */
function is_primitive_type($type) { public static function is_primitive_type($type) {
return !Studip_Ws_Type::is_complex_type($type); return !Studip_Ws_Type::is_complex_type($type);
} }
...@@ -184,7 +184,7 @@ class Studip_Ws_Type { ...@@ -184,7 +184,7 @@ class Studip_Ws_Type {
* *
* @return type <description> * @return type <description>
*/ */
function get_struct_elements($struct) { public static function get_struct_elements($struct) {
# check argument; has to be a class # check argument; has to be a class
if (!class_exists($struct)) { if (!class_exists($struct)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment