Update JsonRPC library
This commit is contained in:
parent
c28c46b8ba
commit
c48cb658ff
|
|
@ -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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue