Skip to content

Commit 4c8f332

Browse files
committed
AC-1685: Fix Integration Tests to be compatible with PHP 8.1
- add di.xml configuration for BundleRegularPrice
1 parent a0ac45f commit 4c8f332

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

app/code/Magento/Bundle/Pricing/Price/BundleRegularPrice.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
namespace Magento\Bundle\Pricing\Price;
88

99
use Magento\Bundle\Pricing\Adjustment\BundleCalculatorInterface;
10-
use Magento\Catalog\Model\Product;
1110
use Magento\Framework\Pricing\Amount\AmountInterface;
1211
use Magento\Catalog\Pricing\Price\CustomOptionPrice;
1312
use Magento\Bundle\Model\Product\Price;

app/code/Magento/Bundle/etc/di.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,11 @@
7272
</argument>
7373
</arguments>
7474
</type>
75+
<type name="Magento\Bundle\Pricing\Price\BundleRegularPrice">
76+
<arguments>
77+
<argument name="calculator" xsi:type="object">Magento\Bundle\Pricing\Adjustment\BundleCalculatorInterface</argument>
78+
</arguments>
79+
</type>
7580
<type name="Magento\Bundle\Pricing\Price\FinalPrice">
7681
<arguments>
7782
<argument name="calculator" xsi:type="object">Magento\Bundle\Pricing\Adjustment\BundleCalculatorInterface</argument>

0 commit comments

Comments
 (0)