Hi. I have some problems with Validator. I receive JSON
{"code": "02"}
and code
$a = ["001", "002", "1111111"];
$v = new Validation();
$v->rules("code", [ new V\InclusionIn([
"domain" => $a,
"allowEmpty" => true ])
]);
$messages = $v->validate($json);
So InclusionIn use in_array() - we have problem. Becouse 0002 = 002. But in function in_array() exist third parameter strict. How i can use this parametr in InclusionIn? Or i need write my own validator?