diff options
author | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 09:48:49 -0400 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2014-10-25 09:48:49 -0400 |
commit | c48cb658ff31cab1cd35215e3a745620c4db186e (patch) | |
tree | bea6dd53e21675b2b70e36ab6667f91cf78b1640 /vendor/JsonRPC/Client.php | |
parent | c28c46b8ba6e74c9a307b7b3541792d30ea5a458 (diff) |
Update JsonRPC library
Diffstat (limited to 'vendor/JsonRPC/Client.php')
-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); } |