Commit 692336a9 by 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