From 7091a604181af899840a1e38069a34deb360dc6c Mon Sep 17 00:00:00 2001 From: sc0Vu Date: Thu, 25 Jan 2018 11:19:49 +0800 Subject: [PATCH] Fix validate methods. --- src/Methods/EthMethod.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Methods/EthMethod.php b/src/Methods/EthMethod.php index 593b381..61d5b39 100644 --- a/src/Methods/EthMethod.php +++ b/src/Methods/EthMethod.php @@ -111,8 +111,8 @@ class EthMethod extends JSONRPC implements IMethod if (is_array($rule)) { $isError = true; - foreach ($rule as $r) { - if (call_user_func([$rule, 'validate'], $params[$key]) === true) { + foreach ($rule as $subRule) { + if (call_user_func([$subRule, 'validate'], $params[$key]) === true) { $isError = false; break; }