From 948911afd6224cd4f0bdb822b3a382ef3ce9adaa Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Fri, 10 May 2024 11:52:16 +0200 Subject: [PATCH] Fix PHPStan on PHP 8.3 --- src/Constraints/CountryVatNumber.php | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Constraints/CountryVatNumber.php b/src/Constraints/CountryVatNumber.php index d9c15da..cde0d42 100644 --- a/src/Constraints/CountryVatNumber.php +++ b/src/Constraints/CountryVatNumber.php @@ -6,21 +6,17 @@ use Symfony\Component\Validator\Constraint; -/** - * @Annotation - */ class CountryVatNumber extends Constraint { + /** @var string */ public const CORRESPONDENCE_ERROR = '403'; - /** @var string */ - public $message = 'flux_se.sylius_eu_vat.country_vat_number.invalid'; + public string $message = 'flux_se.sylius_eu_vat.country_vat_number.invalid'; /** @var string[] */ public $groups = []; - /** @var string */ - public $vatNumberPath = 'vatNumber'; + public string $vatNumberPath = 'vatNumber'; public function getTargets() {