From: gggeek Date: Sun, 22 Mar 2015 18:51:22 +0000 (+0000) Subject: Avoid use of return-by-ref for send() calls X-Git-Tag: 4.0.0-alpha^2~130 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=6fb8db98b4fb1f9813d8426bb576fba08d46b4ff;p=plcapi.git Avoid use of return-by-ref for send() calls --- diff --git a/src/Client.php b/src/Client.php index 4586b707..ce1d6a5c 100644 --- a/src/Client.php +++ b/src/Client.php @@ -327,13 +327,13 @@ class Client /** * Send an xmlrpc request. * - * @param mixed $msg The request object, or an array of requests for using multicall, or the complete xml representation of a request + * @param Request|Request[]|string $msg The Request object, or an array of requests for using multicall, or the complete xml representation of a request * @param integer $timeout Connection timeout, in seconds, If unspecified, a platform specific timeout will apply * @param string $method if left unspecified, the http protocol chosen during creation of the object will be used * * @return Response */ - public function & send($msg, $timeout = 0, $method = '') + public function send($msg, $timeout = 0, $method = '') { // if user does not specify http protocol, use native method of this client // (i.e. method set during call to constructor)