-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Add alpha3 option to country constraint #35116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adding this makes sense to me. We did something similar for the |
So in addition we should probably also think about adding the same option to the |
97f8d00
to
c70a24f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree Language
should have the same option 👍
src/Symfony/Component/Validator/Constraints/CountryValidator.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Validator/Tests/Constraints/CountryValidatorTest.php
Show resolved
Hide resolved
@maxperrimond Do you have time to finish this PR? |
c70a24f
to
2703ce3
Compare
@fabpot Thank you to remind me about this PR. I push some changes |
2703ce3
to
d6f34a5
Compare
Thank you @maxperrimond. |
…(maxperrimond) This PR was merged into the master branch. Discussion ---------- [Validator] added alpha3 option to country constraint <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Documentation part of symfony/symfony#35116 Commits ------- 912a217 [Validator] added alpha3 option to country constraint
…xabbuh) This PR was merged into the 5.1-dev branch. Discussion ---------- [Validator] add alpha3 option to Language constraint | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #35116 (comment) | License | MIT | Doc PR | Commits ------- ce73b98 add alpha3 option to Language constraint
…xabbuh) This PR was merged into the 5.1-dev branch. Discussion ---------- [Validator] add alpha3 option to Language constraint | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix symfony/symfony#35116 (comment) | License | MIT | Doc PR | Commits ------- ce73b98e2c add alpha3 option to Language constraint
It might have been discussed somewhere before, but wouldn't a |
A following of #33791 and #32988 to add
alpha3
option also toCountry
constraint in the validator component.