diff --git a/DataLayer/Mapper/ProductDataMapper.php b/DataLayer/Mapper/ProductDataMapper.php index 52ad28c..a710472 100644 --- a/DataLayer/Mapper/ProductDataMapper.php +++ b/DataLayer/Mapper/ProductDataMapper.php @@ -83,9 +83,7 @@ public function mapByProduct(ProductInterface $product): array } $productData['price'] = $this->priceFormatter->format((float) $product->getPriceInfo()->getPrice(FinalPrice::PRICE_CODE)->getValue()); - // @phpstan-ignore-next-line if ($product->getCustomOption('simple_product') && $product->getCustomOption('simple_product')->getProduct()) { - // @phpstan-ignore-next-line $simpleProduct = $product->getCustomOption('simple_product')->getProduct(); $productData['price'] = $this->priceFormatter->format((float) $simpleProduct->getPriceInfo()->getPrice(FinalPrice::PRICE_CODE)->getValue()); }