From 85b5cea599dc654bd547cb217ccee21d3914ee3e Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Sun, 21 Jan 2018 16:21:29 +0800 Subject: [PATCH] Pass reference Let EthMethod validate pass reference that we can add default values directly. --- src/Methods/EthMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Methods/EthMethod.php b/src/Methods/EthMethod.php index ca11ce7..f6621f1 100644 --- a/src/Methods/EthMethod.php +++ b/src/Methods/EthMethod.php @@ -84,7 +84,7 @@ class EthMethod extends JSONRPC implements IMethod * @param array $params * @return bool */ - public function validate($params) + public function validate(&$params) { if (!is_array($params)) { throw new InvalidArgumentException('Please use array params when call validate.');