Skip to content

Commit c8c9006

Browse files
author
Makar
committed
fix(smi2#202): Fix converting boolean when inserting into int
1 parent cefff6a commit c8c9006

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Quote/StrictQuoteLine.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ function ($v) use ($enclosure_esc, $encode_esc) {
113113
return (string) $value;
114114
}
115115

116+
$value = is_bool($value) ? ($value ? 'true' : 'false') : $value;
117+
116118
if (is_string($value) && $encode) {
117119
if ($tabEncode) {
118120
return str_replace(["\t", "\n"], ['\\t', '\\n'], $value);

0 commit comments

Comments
 (0)