Pass reference
Let EthMethod validate pass reference that we can add default values directly.
This commit is contained in:
parent
d52a8ddfa0
commit
85b5cea599
@ -84,7 +84,7 @@ class EthMethod extends JSONRPC implements IMethod
|
|||||||
* @param array $params
|
* @param array $params
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function validate($params)
|
public function validate(&$params)
|
||||||
{
|
{
|
||||||
if (!is_array($params)) {
|
if (!is_array($params)) {
|
||||||
throw new InvalidArgumentException('Please use array params when call validate.');
|
throw new InvalidArgumentException('Please use array params when call validate.');
|
||||||
|
Loading…
Reference in New Issue
Block a user