Update JsonRPC library
This commit is contained in:
@@ -164,7 +164,8 @@ class Api extends PHPUnit_Framework_TestCase
|
||||
'column_id' => 2,
|
||||
);
|
||||
|
||||
$this->assertTrue($this->client->execute('createTask', $task));
|
||||
//$this->assertTrue($this->client->execute('createTask', $task));
|
||||
$this->assertTrue($this->client->createTask($task));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
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