Skip to content

Commit d4511bc

Browse files
committed
- Some minor improvements
1 parent 62db39f commit d4511bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Builder/Helpers/FieldValueConverter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public static function convertValues(array $row, array $columnDefinitions) {
2424
private static function convertValue($value, $type) {
2525
switch ($type) {
2626
case 'i':
27-
return (int) $value;
27+
return $value !== null ? (int) $value : null;
2828
case 'f':
29-
return (float) $value;
29+
return $value !== null ? (float) $value : null;
3030
}
3131
return $value;
3232
}

0 commit comments

Comments
 (0)