diff --git a/EmptyValidator.php b/EmptyValidator.php index 096bb2c..17529a2 100644 --- a/EmptyValidator.php +++ b/EmptyValidator.php @@ -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) { diff --git a/EnumValidator.php b/EnumValidator.php index b588676..a1873fd 100644 --- a/EnumValidator.php +++ b/EnumValidator.php @@ -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) {