diff --git a/VERSION b/VERSION index 227cea2..38f77a6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.0.0 +2.0.1 diff --git a/src/Client/HttpRpcClient.php b/src/Client/HttpRpcClient.php index 4ee84e5..4ab980f 100644 --- a/src/Client/HttpRpcClient.php +++ b/src/Client/HttpRpcClient.php @@ -43,11 +43,11 @@ class HttpRpcClient implements RpcClient { return RpciiMsgPack::decode($request->execute()); } - public function query(string $action, array $params): mixed { + public function query(string $action, array $params = []): mixed { return $this->callProcedure(false, $action, $params); } - public function action(string $action, array $params): mixed { + public function action(string $action, array $params = []): mixed { return $this->callProcedure(true, $action, $params); } diff --git a/src/Client/RpcClient.php b/src/Client/RpcClient.php index 8875453..9d10ca4 100644 --- a/src/Client/RpcClient.php +++ b/src/Client/RpcClient.php @@ -24,7 +24,7 @@ interface RpcClient { * @param array $params Parameters to query with. * @return mixed Result of the query. */ - function query(string $procedure, array $params): mixed; + function query(string $procedure, array $params = []): mixed; /** * Makes an RPC action call. @@ -33,5 +33,5 @@ interface RpcClient { * @param array $params Parameters to query with. * @return mixed Result of the procedure call. */ - function action(string $procedure, array $params): mixed; + function action(string $procedure, array $params = []): mixed; } diff --git a/src/Client/ScopedRpcClient.php b/src/Client/ScopedRpcClient.php index 3790a79..32bb63f 100644 --- a/src/Client/ScopedRpcClient.php +++ b/src/Client/ScopedRpcClient.php @@ -22,11 +22,11 @@ class ScopedRpcClient implements RpcClient { return $this->base->scopeTo($this->prefix . $prefix); } - public function query(string $procedure, array $params): mixed { + public function query(string $procedure, array $params = []): mixed { return $this->base->query($this->prefix . $procedure, $params); } - public function action(string $procedure, array $params): mixed { + public function action(string $procedure, array $params = []): mixed { return $this->base->action($this->prefix . $procedure, $params); } }