This commit is contained in:
2023-04-16 14:04:00 +08:00
parent 708f29eac4
commit fb95cc6ca6
+1 -1
View File
@@ -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;
}
}