Add a note to UPGRADE file about changing PaymentPreCompleteListener's constructor

This commit is contained in:
Grzegorz Sadowski 2024-06-07 12:38:06 +02:00
parent 7d6bf16f4a
commit f20435e6e2
No known key found for this signature in database
GPG key ID: EF87FF4E6E3BD364

View file

@ -1,3 +1,17 @@
# UPGRADING FROM `v1.13.1` TO `v1.13.2`
1. Due to a bug that was causing wrong calculation of available stock during completing a payment [REF](https://github.com/Sylius/Sylius/issues/16160),
The constructor of `Sylius\Bundle\CoreBundle\EventListener\PaymentPreCompleteListener` has been modified as follows:
```diff
public function __construct(
+ private OrderItemAvailabilityCheckerInterface|AvailabilityCheckerInterface $availabilityChecker,
- private AvailabilityCheckerInterface $availabilityChecker,
)
```
If you have overwritten the service or its argument, check the correct functioning.
# UPGRADE FROM `v1.12.X` TO `v1.13.0`
## Preconditions