Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/Parser/Field/FieldFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public static function build(
null,
$repeatingFieldCollection
);

//We want to append repeating fields to a repeating collection if it is the same type
if ($repeatingCollection) {
//Check to see if the repeating field is a different repeater to create a new instance of it and not overwrite the other repeater
Expand All @@ -102,7 +103,11 @@ public static function build(
}
}
} elseif ($data instanceof Carbon) {
$type = new Date($field, $data, $config);
if (is_int($label)) {
$type = new Date($field, $data, $config);
} else {
$type = new Date($label, $data, $config);
}
} elseif (!$data instanceof LazyCollection) {
if (($fieldType !== null) && in_array($fieldType, self::$fileTypes)) {
if (is_int($label)) {
Expand Down