This commit is contained in:
2023-12-19 14:51:13 +08:00
parent 6621c5f247
commit 21aca8b642
13 changed files with 22 additions and 35 deletions
+1 -2
View File
@@ -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);
}