Skip to content

Commit caa4d94

Browse files
committed
MAGETWO-69634: Product with a special price must be showed with this price in the wishlist
1 parent 4d9f2d9 commit caa4d94

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

app/code/Magento/Catalog/Pricing/Price/ConfiguredPriceSelection.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
namespace Magento\Catalog\Pricing\Price;
99

10+
use Magento\Catalog\Model\Product;
11+
use Magento\Framework\Api\ExtensibleDataInterface;
12+
1013
/**
1114
* Configured price selection model
1215
*/
@@ -47,14 +50,12 @@ public function getSelectionPriceList(\Magento\Catalog\Pricing\Price\ConfiguredP
4750
/**
4851
* Create Selection Price List
4952
*
50-
* @param $option
51-
* @param \Magento\Catalog\Model\Product $product
53+
* @param ExtensibleDataInterface $option
54+
* @param Product $product
5255
* @return array
5356
*/
54-
private function createSelectionPriceList(
55-
$option,
56-
\Magento\Catalog\Model\Product $product
57-
) {
57+
private function createSelectionPriceList(ExtensibleDataInterface $option, Product $product): array
58+
{
5859
return $this->calculator->createSelectionPriceList($option, $product);
5960
}
6061
}

app/code/Magento/Catalog/Pricing/Render/ConfiguredPriceBox.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class ConfiguredPriceBox extends FinalPriceBox
2828
private $configuredPriceSelection;
2929

3030
/**
31-
* @param Context $context
32-
* @param SaleableInterface $saleableItem
33-
* @param PriceInterface $price
34-
* @param RendererPool $rendererPool
35-
* @param array $data
36-
* @param SalableResolverInterface|null $salableResolver
37-
* @param MinimalPriceCalculatorInterface|null $minimalPriceCalculator
31+
* @param Context $context
32+
* @param SaleableInterface $saleableItem
33+
* @param PriceInterface $price
34+
* @param RendererPool $rendererPool
35+
* @param array $data
36+
* @param SalableResolverInterface|null $salableResolver
37+
* @param MinimalPriceCalculatorInterface|null $minimalPriceCalculator
3838
* @param \Magento\Catalog\Pricing\Price\ConfiguredPriceSelection|null $configuredPriceSelection
3939
*/
4040
public function __construct(

0 commit comments

Comments
 (0)