mirror of
https://github.com/Respect/Validation.git
synced 2024-06-29 02:30:06 +02:00
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]:
|
||
---|---|---|
.. | ||
fixtures | ||
integration | ||
library | ||
unit |