diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/JsonRPC/Client.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/JsonRPC/Client.php b/vendor/JsonRPC/Client.php index 65aed223..d9c785ed 100644 --- a/vendor/JsonRPC/Client.php +++ b/vendor/JsonRPC/Client.php @@ -88,8 +88,13 @@ class Client * @param array $params Procedure arguments * @return mixed */ - public function __call($method, $params) + public function __call($method, array $params) { + // Allow to pass an array and use named arguments + if (count($params) === 1 && is_array($params[0])) { + $params = $params[0]; + } + return $this->execute($method, $params); } |