-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Labels
Description
php-validate/src/Validator/GlobalMessage.php
Lines 76 to 77 in d93a21a
'enum' => '{attr} must in ({value0})', | |
'notIn' => '{attr} cannot in ({value0})', |
这个提示语等于暴露了允许的值。
inField 验证器没有提示语
php-validate/src/Traits/ScopedValidatorsTrait.php
Lines 575 to 582 in e900a44
public function inFieldValidator($val, string $anotherField): bool | |
{ | |
if ($anotherField && $dict = $this->getByPath($anotherField)) { | |
return Validators::in($val, $dict); | |
} | |
return false; | |
} |
inhere