From 6166d39b02eaa025fec5007ecb5bca3ee2b0a22b Mon Sep 17 00:00:00 2001 From: Vinchan Date: Wed, 2 Jun 2021 09:52:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DIN=E9=AA=8C=E8=AF=81"0?= =?UTF-8?q?"=E4=B8=8E"00"=E7=BB=93=E6=9E=9C=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/think/Validate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/think/Validate.php b/src/think/Validate.php index 07884064..281ce236 100644 --- a/src/think/Validate.php +++ b/src/think/Validate.php @@ -1274,7 +1274,7 @@ class Validate */ public function in($value, $rule): bool { - return in_array($value, is_array($rule) ? $rule : explode(',', $rule)); + return in_array($value, is_array($rule) ? $rule : explode(',', $rule), true); } /** -- Gitee