Refactor RPC framework and enhance error handling.
This commit is contained in:
parent
42ba7013f7
commit
ef3b10b286
10 changed files with 383 additions and 245 deletions
|
@ -23,7 +23,7 @@
|
|||
* @param string|null $id The ID of the request.
|
||||
* @param array|null $parameters The parameters of the request.
|
||||
*/
|
||||
public function __construct(string $method, ?string $id, ?array $parameters)
|
||||
public function __construct(string $method, ?string $id, ?array $parameters=null)
|
||||
{
|
||||
$this->method = $method;
|
||||
$this->parameters = $parameters;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue