Skip to content

Commit

Permalink
Fix options property builder
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbager committed Mar 18, 2018
1 parent c3773ff commit f20b284
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/PropertyBuilder/Mapper/ProductTaxonsMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ public function mapToUniqueCodes(ProductInterface $product): array
$taxons[] = $taxon->getCode();
}

return array_unique($taxons);
return array_values(array_unique($taxons));
}
}
2 changes: 1 addition & 1 deletion src/PropertyBuilder/OptionBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function resolveProductOptions(ProductInterface $product, Document $docu
$value = $this->stringFormatter->formatToLowercaseWithoutSpaces($productOptionValue->getValue());
$options[] = $value;

$document->set($index, array_unique($options));
$document->set($index, array_values(array_unique($options)));
}
}
}
Expand Down

0 comments on commit f20b284

Please sign in to comment.