Skip to content

Commit 645dad8

Browse files
authored
bug #414 [RefundUnitsConverter] Change interface method signature (Rafikooo)
This PR was merged into the 1.4 branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | 1.4 | Bug fix? | yes | New feature? | no Commits ------- bf9b8b7 [RefundUnitsConverter] Change interface method signature e0674e2 Remove outdated phpstan ignores
2 parents a7b978e + e0674e2 commit 645dad8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Converter/RefundUnitsConverterInterface.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
namespace Sylius\RefundPlugin\Converter;
1515

16+
use Sylius\RefundPlugin\Model\RefundTypeInterface;
17+
1618
/**
17-
* @method array convert(array $units, string $unitRefundClass)
19+
* @method array convert(array $units, string|RefundTypeInterface $unitRefundClass)
1820
*/
1921
interface RefundUnitsConverterInterface
2022
{

src/Creator/RefundUnitsCommandCreator.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,13 @@ public function fromRequest(Request $request): RefundUnits
4040
/** @phpstan-ignore-next-line */
4141
$units = $this->requestToRefundUnitsConverter->convert(
4242
$request->request->has('sylius_refund_units') ? $request->request->all()['sylius_refund_units'] : [],
43-
/** @phpstan-ignore-next-line */
4443
RefundType::orderItemUnit(),
4544
OrderItemUnitRefund::class,
4645
);
4746

4847
/** @phpstan-ignore-next-line */
4948
$shipments = $this->requestToRefundUnitsConverter->convert(
5049
$request->request->has('sylius_refund_shipments') ? $request->request->all()['sylius_refund_shipments'] : [],
51-
/** @phpstan-ignore-next-line */
5250
RefundType::shipment(),
5351
ShipmentRefund::class,
5452
);

0 commit comments

Comments
 (0)