Skip to content

Commit f20b284

Browse files
committed
Fix options property builder
1 parent c3773ff commit f20b284

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/PropertyBuilder/Mapper/ProductTaxonsMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ public function mapToUniqueCodes(ProductInterface $product): array
2727
$taxons[] = $taxon->getCode();
2828
}
2929

30-
return array_unique($taxons);
30+
return array_values(array_unique($taxons));
3131
}
3232
}

src/PropertyBuilder/OptionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ private function resolveProductOptions(ProductInterface $product, Document $docu
6565
$value = $this->stringFormatter->formatToLowercaseWithoutSpaces($productOptionValue->getValue());
6666
$options[] = $value;
6767

68-
$document->set($index, array_unique($options));
68+
$document->set($index, array_values(array_unique($options)));
6969
}
7070
}
7171
}

0 commit comments

Comments
 (0)