This commit is contained in:
2023-12-18 02:10:50 +08:00
parent cbeb3698c6
commit f7bf87fdca
+1 -1
View File
@@ -90,7 +90,7 @@ class Binding implements RequestFilterInterface
protected function getValidator($key, $rule): array
{
if (is_numeric($key)) {
$class = self::TYPES[$key];
$class = self::TYPES[$rule];
} else {
$class = array_merge(self::TYPES[$key], ['value' => $rule, 'field' => $key]);
}