We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5791131 commit fc26316Copy full SHA for fc26316
app/code/Magento/Msrp/Pricing/MsrpPriceCalculator.php
@@ -23,9 +23,15 @@ class MsrpPriceCalculator implements MsrpPriceCalculatorInterface
23
/**
24
* @param array $msrpPriceCalculators
25
*/
26
- public function __construct(array $msrpPriceCalculators)
+ public function __construct(?array $msrpPriceCalculators = null)
27
{
28
- $this->msrpPriceCalculators = $this->getMsrpPriceCalculators($msrpPriceCalculators);
+ /*
29
+ * This is a workaround for the case of modules Magento_MsrpConfigurableProduct and Magento_MsrpGroupedProduct
30
+ * are disabled.
31
+ */
32
+ if (\is_array($msrpPriceCalculators)) {
33
+ $this->msrpPriceCalculators = $this->getMsrpPriceCalculators($msrpPriceCalculators);
34
+ }
35
}
36
37
0 commit comments