Skip to content

Commit c823213

Browse files
committed
fix(BooleanCast): booleanFormat actually returns a string
1 parent 9dc52b6 commit c823213

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/Casts/BooleanCast.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ component singleton {
1414
required string key,
1515
any value
1616
) {
17-
return isNull( arguments.value ) ? false : booleanFormat( arguments.value );
17+
return isNull( arguments.value ) ? false : !!arguments.value;
1818
}
1919

2020
/**

0 commit comments

Comments
 (0)