We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2121f6 commit 4d029dfCopy full SHA for 4d029df
1 file changed
src/Migration/Sources/CSV.php
@@ -234,8 +234,8 @@ private function exportDocuments(int $batchSize): void
234
235
if ($parsedValue !== '') {
236
$parsedData[$key] = match ($type) {
237
- Attribute::TYPE_INTEGER => is_numeric($parsedValue) ? (int)$parsedValue : null,
238
- Attribute::TYPE_FLOAT => is_numeric($parsedValue) ? (float)$parsedValue : null,
+ Attribute::TYPE_INTEGER => is_numeric($parsedValue) ? (int) $parsedValue : null,
+ Attribute::TYPE_FLOAT => is_numeric($parsedValue) ? (float) $parsedValue : null,
239
Attribute::TYPE_BOOLEAN => filter_var($parsedValue, FILTER_VALIDATE_BOOLEAN),
240
default => $parsedValue,
241
};
0 commit comments