qqq
This commit is contained in:
+8
-5
@@ -10,6 +10,8 @@ declare(strict_types=1);
|
|||||||
namespace validator;
|
namespace validator;
|
||||||
|
|
||||||
|
|
||||||
|
use ReflectionException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class ArrayValidator
|
* Class ArrayValidator
|
||||||
* @package validator
|
* @package validator
|
||||||
@@ -17,11 +19,12 @@ namespace validator;
|
|||||||
class ArrayValidator extends BaseValidator
|
class ArrayValidator extends BaseValidator
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return bool
|
* @return bool
|
||||||
*
|
*
|
||||||
* 检查
|
* 检查
|
||||||
*/
|
* @throws ReflectionException
|
||||||
|
*/
|
||||||
public function trigger(): bool
|
public function trigger(): bool
|
||||||
{
|
{
|
||||||
return $this->_validator($this->field, function ($field, $params) {
|
return $this->_validator($this->field, function ($field, $params) {
|
||||||
|
|||||||
Reference in New Issue
Block a user