summaryrefslogtreecommitdiff
path: root/vendor/JsonRPC/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/JsonRPC/Client.php')
-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);
}