This commit is contained in:
2023-12-15 19:45:05 +08:00
parent 2f60004570
commit a5b5e10e5e
5 changed files with 5 additions and 3 deletions
+1 -2
View File
@@ -93,8 +93,7 @@ class BindForm implements InjectParameterInterface
$validator->setAlias($property->getName(), $rule->field);
}
$typeProxy = $this->_typeValidator($property);
$validator->addRule($property->getName(), [$typeProxy, false]);
$validator->addRule($property->getName(), [$this->_typeValidator($property), 'dispatch', false]);
}
+1 -1
View File
@@ -94,7 +94,7 @@ class Binding implements RequestFilterInterface
if ($class['class'] === RequiredValidatorFilter::class) {
$isFirst = true;
}
return [Kiri::createObject($class), $isFirst];
return [Kiri::createObject($class), 'dispatch', $isFirst];
}
}
+1
View File
@@ -9,6 +9,7 @@ class BoolProxy extends TypesProxy
/**
* @param object $form
* @param string $field
* @param mixed $value
* @return bool
*/
+1
View File
@@ -8,6 +8,7 @@ class FloatProxy extends TypesProxy
/**
* @param object $form
* @param string $field
* @param mixed $value
* @return bool
*/
+1
View File
@@ -9,6 +9,7 @@ class StringProxy extends TypesProxy
/**
* @param object $form
* @param string $field
* @param mixed $value
* @return bool
*/