[Maintenance] Remove depractions from OrderPaymentProcessor

This commit is contained in:
Jan Goralski 2023-08-03 15:16:37 +02:00
parent 69798e40ba
commit 37a14b5594
No known key found for this signature in database
GPG key ID: 95D91BA380F31EDD

View file

@ -31,12 +31,6 @@ final class OrderPaymentProcessor implements OrderProcessorInterface
/** @var array<string> $unprocessableOrderStates */
private array $unprocessableOrderStates = [],
) {
if ($this->orderPaymentsRemover === null) {
@trigger_error(sprintf('Not passing an $orderPaymentsRemover to %s constructor is deprecated since Sylius 1.12 and will be prohibited in Sylius 2.0.', self::class), \E_USER_DEPRECATED);
}
if ([] === $this->unprocessableOrderStates) {
@trigger_error(sprintf('Not passing an $unprocessableOrderStates to %s constructor is deprecated since Sylius 1.12 and will be prohibited in Sylius 2.0.', self::class), \E_USER_DEPRECATED);
}
}
public function process(BaseOrderInterface $order): void