Method validateBoolean
Opened this issue · 0 comments
bsoliveira commented
I had some validation failures of boolean fields, because they are of type string coming from the request. I had a better result using filter_var.
return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== null;