We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b07f72d + 215f60a commit 207e16bCopy full SHA for 207e16b
src/Creator/RefundUnitsCommandCreatorDecorator.php
@@ -21,6 +21,7 @@
21
use Sylius\RefundPlugin\Model\OrderItemUnitRefund;
22
use Sylius\RefundPlugin\Model\RefundType;
23
use Sylius\RefundPlugin\Model\ShipmentRefund;
24
+use Sylius\RefundPlugin\Model\UnitRefundInterface;
25
use Symfony\Component\HttpFoundation\Request;
26
use Symfony\Contracts\Translation\TranslatorInterface;
27
use Webmozart\Assert\Assert;
@@ -131,7 +132,7 @@ private function getTotalRefundAmount(array $units): int
131
132
return $total;
133
}
134
- private function getAmount(OrderItemUnitRefund $unit): int
135
+ private function getAmount(UnitRefundInterface $unit): int
136
{
137
return $unit->total();
138
0 commit comments