respect-validation/library
Henrique Moody 8fd18d9b72
Fix wrong behavior in the "Contains" rule
While making sure that Validation uses PHP strict types [1] the compared
value in the "Contains" rule was cast to string. That is problematic
when someone wants to enforce the operation to compare if the input has
a value identical to the expected value.

This commit will fix that by not casting the expected value but also
make sure that string comparison will not be used when it's not a
string.

[1]: ef975629f3

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-12-13 00:09:41 +01:00
..
Exceptions Improve code and documentation of "Ip" rule 2018-12-07 23:32:40 +01:00
Helpers Use a more consisten names for traits 2018-12-06 21:21:42 +01:00
Rules Fix wrong behavior in the "Contains" rule 2018-12-13 00:09:41 +01:00
Factory.php Fix "@author" annotations 2018-11-25 18:04:59 +01:00
Validatable.php Add missing "@author" annotations 2018-11-25 18:08:44 +01:00
Validator.php Improve code and documentation of "Ip" rule 2018-12-07 23:32:40 +01:00