diff --git a/src/Tpay/Resolver/TpayTransactionChannelResolver.php b/src/Tpay/Resolver/TpayTransactionChannelResolver.php index ab145ba0..d0f8414a 100644 --- a/src/Tpay/Resolver/TpayTransactionChannelResolver.php +++ b/src/Tpay/Resolver/TpayTransactionChannelResolver.php @@ -16,25 +16,16 @@ final class TpayTransactionChannelResolver implements TpayTransactionChannelReso { public function __construct( private readonly Payum $payum, - private readonly ?GetTpayTransactionsChannelsFactoryInterface $getTpayTransactionsChannelsFactory = null, + private readonly GetTpayTransactionsChannelsFactoryInterface $getTpayTransactionsChannelsFactory, private readonly ?LoggerInterface $logger = null, ) { - if (null === $this->getTpayTransactionsChannelsFactory) { - trigger_deprecation( - 'commerce-weavers/sylius-tpay-plugin', - '1.0', - 'Not passing a $getTpayTransactionsChannelsFactory to %s constructor is deprecated and will be removed in SyliusTpayPlugin 2.0.', - self::class, - ); - } } public function resolve(): array { $gateway = $this->payum->getGateway(GatewayFactory::NAME); - $value = $this->getTpayTransactionsChannelsFactory?->createNewEmpty() - ?? new GetTpayTransactionsChannels(new ArrayObject()); + $value = $this->getTpayTransactionsChannelsFactory->createNewEmpty(); try { $gateway->execute($value, true); diff --git a/src/Tpay/Security/Notification/Verifier/SignatureVerifier.php b/src/Tpay/Security/Notification/Verifier/SignatureVerifier.php index 9f3c4732..5e3d1843 100644 --- a/src/Tpay/Security/Notification/Verifier/SignatureVerifier.php +++ b/src/Tpay/Security/Notification/Verifier/SignatureVerifier.php @@ -20,7 +20,7 @@ public function __construct( private readonly ?ProductionModeCheckerInterface $productionModeChecker = null, ) { if (null === $this->productionModeChecker) { - trigger_deprecation( + ( 'commerce-weavers/sylius-tpay-plugin', '1.0', 'Not passing a $productionModeChecker to %s constructor is deprecated and will be removed in SyliusTpayPlugin 2.0.',