mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 15:50:03 +01:00
The "Domain" rule duplicates a lot of its logic among the methods "check()," "validate()," and "assert()." Such duplication makes it hard to maintain and hard to understand. Besides that: - It triggers a PHP error when trying to validate a non-scalar value; - It does not show the exceptions in the correct hierarchy; - It allows to change the TLD validation after to object is created. This commit will fix those issues and create better tests for the rule. Signed-off-by: Henrique Moody <henriquemoody@gmail.com> |
||
|---|---|---|
| .. | ||
| rules | ||
| concrete-api.md | ||
| feature-guide.md | ||
| index.md | ||
| installation.md | ||
| license.md | ||
| list-of-rules.md | ||