mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
refactor #16353 [CS][DX] Refactor ()
This PR was merged into the 1.13 branch.
Discussion
----------
This PR has been generated automatically.
For more details see [refactor.yaml](/Sylius/Sylius/blob/1.12/.github/workflows/refactor.yaml).
Commits
-------
987bcb39f8 [CS][DX] Refactor
This commit is contained in:
commit
890eb2dc29
2 changed files with 2 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ use Sylius\Component\Inventory\Checker\AvailabilityCheckerInterface;
|
|||
final class PaymentPreCompleteListener
|
||||
{
|
||||
public function __construct(
|
||||
private OrderItemAvailabilityCheckerInterface|AvailabilityCheckerInterface $availabilityChecker,
|
||||
private AvailabilityCheckerInterface|OrderItemAvailabilityCheckerInterface $availabilityChecker,
|
||||
) {
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ final class PaymentPreCompleteListenerSpec extends ObjectBehavior
|
|||
|
||||
$this->checkStockAvailability($event);
|
||||
}
|
||||
|
||||
function it_does_nothing_if_no_item_is_tracked_when_order_item_availability_checker_is_not_passed(
|
||||
AvailabilityCheckerInterface $availabilityChecker,
|
||||
ResourceControllerEvent $event,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue