From ccfbe87d3d148faedcf1b9249927cd47e7824b04 Mon Sep 17 00:00:00 2001 From: Daniel Subiabre Date: Thu, 22 Feb 2024 10:24:52 +0100 Subject: [PATCH] Remove deprecation notices --- src/DependencyInjection/Compiler/GatewayPass.php | 2 +- src/State/GatewayCheckoutStateProcessor.php | 3 +++ src/State/UserStateProcessor.php | 3 +++ src/Validator/GatewayName.php | 6 ------ src/Validator/GatewayNameValidator.php | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/DependencyInjection/Compiler/GatewayPass.php b/src/DependencyInjection/Compiler/GatewayPass.php index 8cf8324..d92e510 100644 --- a/src/DependencyInjection/Compiler/GatewayPass.php +++ b/src/DependencyInjection/Compiler/GatewayPass.php @@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; class GatewayPass implements CompilerPassInterface { - public function process(ContainerBuilder $container) + public function process(ContainerBuilder $container): void { /** @var GatewayLocator */ $gatewayLocator = $container->get(GatewayLocator::class); diff --git a/src/State/GatewayCheckoutStateProcessor.php b/src/State/GatewayCheckoutStateProcessor.php index 7463643..ef9115c 100644 --- a/src/State/GatewayCheckoutStateProcessor.php +++ b/src/State/GatewayCheckoutStateProcessor.php @@ -17,6 +17,9 @@ class GatewayCheckoutStateProcessor implements ProcessorInterface ) { } + /** + * @inheritdoc + */ public function process(mixed $data, Operation $operation, array $uriVariables = [], array $context = []) { if ($data instanceof GatewayCheckout) { diff --git a/src/State/UserStateProcessor.php b/src/State/UserStateProcessor.php index 7dbef5e..292365d 100644 --- a/src/State/UserStateProcessor.php +++ b/src/State/UserStateProcessor.php @@ -17,6 +17,9 @@ class UserStateProcessor implements ProcessorInterface ) { } + /** + * @inheritdoc + */ public function process(mixed $data, API\Operation $operation, array $uriVariables = [], array $context = []) { if ($data instanceof User && $data->getPlainPassword()) { diff --git a/src/Validator/GatewayName.php b/src/Validator/GatewayName.php index e556cf5..0c44f90 100644 --- a/src/Validator/GatewayName.php +++ b/src/Validator/GatewayName.php @@ -13,12 +13,6 @@ use Symfony\Component\Validator\Constraints\Choice; #[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class GatewayName extends Choice { - /* - * Any public properties become valid options for the annotation. - * Then, use these in your validator class. - */ - public $message = 'The value "{{ value }}" is not valid.'; - public function __construct() { parent::__construct( diff --git a/src/Validator/GatewayNameValidator.php b/src/Validator/GatewayNameValidator.php index 39b5d47..ff828e1 100644 --- a/src/Validator/GatewayNameValidator.php +++ b/src/Validator/GatewayNameValidator.php @@ -14,7 +14,7 @@ class GatewayNameValidator extends ChoiceValidator ) { } - public function validate($value, Constraint $constraint) + public function validate($value, Constraint $constraint): void { /* @var App\Validator\GatewayName $constraint */