This commit is contained in:
xl
2023-07-07 17:24:03 +08:00
parent 448b1a68fc
commit d18994fde2
11 changed files with 310 additions and 342 deletions
+5 -4
View File
@@ -13,10 +13,11 @@ namespace validator;
class RequiredValidator extends BaseValidator
{
/**
* @return bool
* 检查是否存在
*/
/**
* @return bool
* 检查是否存在
* @throws \ReflectionException
*/
public function trigger(): bool
{
return $this->_validator($this->field, function ($field, $params) {