From fb95cc6ca634e694eceea628dfcef0fbbff0f4a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Sun, 16 Apr 2023 14:04:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Validator/Validator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Validator.php b/src/Validator/Validator.php index d2af096..95ed783 100644 --- a/src/Validator/Validator.php +++ b/src/Validator/Validator.php @@ -63,7 +63,7 @@ class Validator $data = $request->getQueryParams(); } foreach ($data as $key => $value) { - if (method_exists($this->formData, $key)) { + if (property_exists($this->formData, $key)) { $this->formData->{$key} = $value; } }