Update JsonRPC library
This commit is contained in:
7
vendor/JsonRPC/Client.php
vendored
7
vendor/JsonRPC/Client.php
vendored
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user