Skip to content

Commit a0b6b28

Browse files
committed
ACP2E-1066: Credit memo not genrated if order configrable product with decimal quantity
- Fixed the build error.
1 parent 5e99d0c commit a0b6b28

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Sales/Model/Order/CreditmemoFactory.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class CreditmemoFactory
3434
/**
3535
* @var \Magento\Framework\Unserialize\Unserialize
3636
* @deprecated 101.0.0
37+
* @see \Magento\Framework\Unserialize\Unserialize
3738
*/
3839
protected $unserialize;
3940

@@ -233,7 +234,7 @@ protected function initData($creditmemo, $data)
233234
* @param int|float $parentQty
234235
* @return int|float
235236
*/
236-
private function calculateProductOptions(Item $orderItem, int|float $parentQty): int|float
237+
private function calculateProductOptions(Item $orderItem, $parentQty)
237238
{
238239
$qty = $parentQty;
239240
$productOptions = $orderItem->getProductOptions();

0 commit comments

Comments
 (0)