Skip to content

暴露枚举值和inField没有提示语 #46

@ZhangChengLin

Description

@ZhangChengLin

'enum' => '{attr} must in ({value0})',
'notIn' => '{attr} cannot in ({value0})',

这个提示语等于暴露了允许的值。


inField 验证器没有提示语

public function inFieldValidator($val, string $anotherField): bool
{
if ($anotherField && $dict = $this->getByPath($anotherField)) {
return Validators::in($val, $dict);
}
return false;
}

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions