Skip to content

Commit 457d5ed

Browse files
committed
fix request params
1 parent d510dcf commit 457d5ed

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/Request/RpcRequest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class RpcRequest implements RpcRequestInterface
1919
public function __construct()
2020
{
2121
$this->headers = [];
22+
$this->params = [];
2223
}
2324

2425
/**
@@ -41,18 +42,18 @@ public function setMethod($method)
4142
}
4243

4344
/**
44-
* @return mixed
45+
* @return array
4546
*/
4647
public function getParams()
4748
{
4849
return $this->params;
4950
}
5051

5152
/**
52-
* @param mixed $params
53+
* @param array $params
5354
* @return $this
5455
*/
55-
public function setParams($params)
56+
public function setParams(array $params)
5657
{
5758
$this->params = $params;
5859

0 commit comments

Comments
 (0)