odolbeau / phone-number-bundle

Integrates libphonenumber into your Symfony application
MIT License
217 stars 43 forks source link

Attributes #85

Closed tuxes3 closed 3 years ago

tuxes3 commented 3 years ago

Support php8 Attributes.

So that we can use it like that:


use Misd\PhoneNumberBundle\Validator\Constraints\PhoneNumber as AssertPhoneNumber;
...
    #[ORM\Column(type: 'phone_number')]
    #[Assert\NotNull]
    #[AssertPhoneNumber]
    private PhoneNumber $phone;
maxhelias commented 3 years ago

Already done : https://github.com/odolbeau/phone-number-bundle/pull/84