Commit 692336a9 authored by Cyril Vazquez's avatar Cyril Vazquez

FEAT boolean cast now considers "false", "true", "on, "off", "yes", "no" 0 and 1

parent 999a6ca9
......@@ -477,7 +477,7 @@ trait laabsModelTrait
case 'boolean':
case 'bool':
return (boolean) $sourceValue;
return filter_var($sourceValue, FILTER_VALIDATE_BOOLEAN);
case 'float':
case 'double':
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment