Closed jasonkhanlar closed 2 years ago
I figured out working solution. However, a suggestion to use same naming mechanisms as other languages (e.g. JavaScript/Node, PHP, Python, Perl, etc.) perhaps even creating aliases for additional names mapped to duplicate across other unused names for convenience of familiarity; e.g. 'includes' to match JavaScript
Either I am dumb or something is broken.
returns true (good!)
returns true (bad!)
https://respect-validation.readthedocs.io/en/latest/rules/ContainsAny/
returns true (good!)
returns true (I guess this make sense, but it shouldn't)
returns true (good!)
returns true (bad!)
Expected result similar to:
I think my understanding of syntax is backwards maybe?
Shouldn't that be:
v::containsAny(haystack)->validate(needle);
?Well well well, I just found https://respect-validation.readthedocs.io/en/latest/rules/In/ And what do you know!?!?!?
returns true (good!)
returns false (good!)
returns true (good!)
returns false (good!)