qqq
This commit is contained in:
+6
-5
@@ -23,11 +23,12 @@ class EmptyValidator extends BaseValidator
|
|||||||
|
|
||||||
public string $method;
|
public string $method;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* 检查参数是否为NULL
|
* 检查参数是否为NULL
|
||||||
*/
|
* @throws \ReflectionException
|
||||||
|
*/
|
||||||
public function trigger(): bool
|
public function trigger(): bool
|
||||||
{
|
{
|
||||||
return $this->_validator($this->field, function ($field, $params, $method) {
|
return $this->_validator($this->field, function ($field, $params, $method) {
|
||||||
|
|||||||
+4
-3
@@ -14,9 +14,10 @@ class EnumValidator extends BaseValidator
|
|||||||
|
|
||||||
public array $value = [];
|
public array $value = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
* @throws \ReflectionException
|
||||||
|
*/
|
||||||
public function trigger(): bool
|
public function trigger(): bool
|
||||||
{
|
{
|
||||||
return $this->_validator($this->field, function ($field, $params, $values) {
|
return $this->_validator($this->field, function ($field, $params, $values) {
|
||||||
|
|||||||
Reference in New Issue
Block a user