This commit is contained in:
xl
2023-05-09 10:11:21 +08:00
parent b2a3c30e24
commit 30b99ad98a
2 changed files with 10 additions and 8 deletions
+6 -5
View File
@@ -23,11 +23,12 @@ class EmptyValidator extends BaseValidator
public string $method;
/**
* @return bool
*
* 检查参数是否为NULL
*/
/**
* @return bool
*
* 检查参数是否为NULL
* @throws \ReflectionException
*/
public function trigger(): bool
{
return $this->_validator($this->field, function ($field, $params, $method) {
+4 -3
View File
@@ -14,9 +14,10 @@ class EnumValidator extends BaseValidator
public array $value = [];
/**
* @return bool
*/
/**
* @return bool
* @throws \ReflectionException
*/
public function trigger(): bool
{
return $this->_validator($this->field, function ($field, $params, $values) {