summaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-10-25 09:48:49 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-10-25 09:48:49 -0400
commitc48cb658ff31cab1cd35215e3a745620c4db186e (patch)
treebea6dd53e21675b2b70e36ab6667f91cf78b1640 /vendor
parentc28c46b8ba6e74c9a307b7b3541792d30ea5a458 (diff)
Update JsonRPC library
Diffstat (limited to 'vendor')
-rw-r--r--vendor/JsonRPC/Client.php7
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);
}