eee
This commit is contained in:
@@ -14,12 +14,11 @@ class RequiredValidator extends BaseValidator
|
||||
{
|
||||
|
||||
/**
|
||||
* @param string $field
|
||||
* @param mixed $value
|
||||
* @return bool
|
||||
* 检查是否存在
|
||||
*/
|
||||
public function trigger(string $field, mixed $value): bool
|
||||
public function trigger(mixed $value): bool
|
||||
{
|
||||
return !is_null($value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user