Skip to content

Commit

Permalink
webservice MDL-23083 Zend SOAP does not support struct in the phpdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
mouneyrac committed Jul 5, 2010
1 parent 7d2b6e8 commit e93b82d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webservice/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ protected function get_virtual_method_code($function) {
$type = 'string';
}
} else if ($keydesc instanceof external_single_structure) {
$type = 'struct';
$type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
} else if ($keydesc instanceof external_multiple_structure) {
$type = 'array';
}
Expand All @@ -680,7 +680,7 @@ protected function get_virtual_method_code($function) {
$type = 'string';
}
} else if ($function->returns_desc instanceof external_single_structure) {
$type = 'struct';
$type = 'object|struct'; //only 'object' is supported by SOAP, 'struct' by XML-RPC MDL-23083
} else if ($function->returns_desc instanceof external_multiple_structure) {
$type = 'array';
}
Expand Down

0 comments on commit e93b82d

Please sign in to comment.