Skip to content

Commit

Permalink
Remove ignores again
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Dec 11, 2024
1 parent e39efc3 commit 8546c71
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions DataLayer/Mapper/ProductDataMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 8546c71

Please sign in to comment.