We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/inhere/php-validate/blob/master/src/ValidationTrait.php#L311
如上,safe的独立分支(标记安全的字段不需要其他验证),但是这个分支导致了 后续的after不可用
safe
after
php-validate/src/ValidationTrait.php
Lines 316 to 323 in 3749f60
如上required的分支是出于什么考虑?
required
The text was updated successfully, but these errors were encountered:
因为 required* 检查,字段都可能不存在。这一类型的检查都是先检查字段是否存在,再检查值是否有效
required*
后续的其他验证器,都是直接检查值了。
Sorry, something went wrong.
多个验证器能够按照顺序去检查的
@dongasai :) 有兴趣的可以话可以clone 一个。调整下逻辑看看能不能跑通单元测试。我之前是发现有问题才这样分开的。
No branches or pull requests
https://github.com/inhere/php-validate/blob/master/src/ValidationTrait.php#L311
如上,
safe
的独立分支(标记安全的字段不需要其他验证),但是这个分支导致了 后续的after
不可用php-validate/src/ValidationTrait.php
Lines 316 to 323 in 3749f60
如上
required
的分支是出于什么考虑?The text was updated successfully, but these errors were encountered: