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() {