From 7b16b593666bcc4c029713040f6f7e059d614381 Mon Sep 17 00:00:00 2001 From: Arne <1255879+arneee@users.noreply.github.com> Date: Sun, 3 Sep 2023 13:18:57 +0200 Subject: [PATCH] Add void to VatNumberValidator::validate Method "Symfony\Component\Validator\ConstraintValidatorInterface::validate()" might add "void" as a native return type declaration in the future. Do the same in implementation "Ibericode\Vat\Bundle\Validator\Constraints\VatNumberValidator" now to avoid errors or add an explicit @return annotation to suppress this message. --- src/Validator/Constraints/VatNumberValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Constraints/VatNumberValidator.php b/src/Validator/Constraints/VatNumberValidator.php index 8a21446..4a9aba4 100644 --- a/src/Validator/Constraints/VatNumberValidator.php +++ b/src/Validator/Constraints/VatNumberValidator.php @@ -12,7 +12,7 @@ class VatNumberValidator extends ConstraintValidator { - public function validate($value, Constraint $constraint) + public function validate($value, Constraint $constraint) : void { if (!$constraint instanceof VatNumber) { throw new UnexpectedTypeException($constraint, VatNumber::class);