Skip to content

Commit

Permalink
Add void to VatNumberValidator::validate
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
arneee authored Sep 3, 2023
1 parent 7087aa2 commit 7b16b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validator/Constraints/VatNumberValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b16b59

Please sign in to comment.