mirror of
https://github.com/Respect/Validation.git
synced 2024-06-20 06:25:05 +02:00
cd2390a9b0
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> |
||
---|---|---|
.. | ||
Exceptions | ||
Helpers | ||
Rules | ||
Factory.php | ||
Validatable.php | ||
Validator.php |