Skip to content

Commit

Permalink
Merge pull request #135 from reyostallenberg/fix-setcatgory-call
Browse files Browse the repository at this point in the history
Fix type for call on ProductDetail::setCategory
  • Loading branch information
stefandoorn authored Jan 18, 2022
2 parents 77a6f8f + 4b4c215 commit 11fc51f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resolver/ProductDetailImpressionDataResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private function createProductVariant(ProductVariantInterface $productVariant):
$vo->setId($this->productIdentifierHelper->getProductIdentifier($product));
$vo->setName($product->getName());
$vo->setPrice($this->getPrice($productVariant));
$vo->setCategory(null !== $product->getMainTaxon() ? $product->getMainTaxon()->getName() : null);
$vo->setCategory(null !== $product->getMainTaxon() ? $product->getMainTaxon()->getName() : '');
$vo->setVariant($productVariant->getCode());

return $vo;
Expand Down

0 comments on commit 11fc51f

Please sign in to comment.