From 30b99ad98a56406ea27948fc22ef512c88596c2d Mon Sep 17 00:00:00 2001 From: xl Date: Tue, 9 May 2023 10:11:21 +0800 Subject: [PATCH] qqq --- EmptyValidator.php | 11 ++++++----- EnumValidator.php | 7 ++++--- 2 files changed, 10 insertions(+), 8 deletions(-) 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) {