respect-validation/library
Henrique Moody 2fac861aa1
Do not trigger PHP errors in the "Call" rule
This commit make sure that when the callable is executed by the "Call"
rule and PHP triggers an error, the user does not have to deal with it,
and instead the rule will throw "CallException".

Because of the many changes that were made, it didn't make sense to keep
the class "Call" extending the "AbstractRelated" class.

One thing that is a bit problematic with this rule - and with other
rules as well - is that Validation only knows details of a validation
when it fails, because of that we cannot invert the validations that
passed, meaning that the "Not" rule cannot give the proper response to
a validation that passed. This is a know issue that can only be fixed
is we provide a way for Validation do have more granularity control.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-21 01:22:38 +02:00
..
Exceptions Do not trigger PHP errors in the "Call" rule 2018-08-21 01:22:38 +02:00
Helpers Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
Rules Do not trigger PHP errors in the "Call" rule 2018-08-21 01:22:38 +02:00
Factory.php Remove unnecessary validation from "Factory" class 2018-08-02 10:23:27 +02:00
Validatable.php Rename "Related" to "Child" 2018-08-02 11:18:33 +02:00
Validator.php Do not trigger PHP errors in the "Call" rule 2018-08-21 01:22:38 +02:00