From 3d1bdfbc19a7e7fd323be1dd53c4bacbe7bfb706 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Mon, 1 Jan 2018 20:44:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3Validate=E7=B1=BBcheckRule?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index cbb52673..353561be 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -351,8 +351,6 @@ class Validate { if ($rules instanceof \Closure) { return call_user_func_array($rules, [$value]); - } elseif ($rules instanceof ValidateRule) { - $rules = $rules->getRule(); } elseif (is_string($rules)) { $rules = explode('|', $rules); }