The Validator component provides tools to validate values following the JSR-303 Bean Validation specification.
Clone or download
nicolas-grekas feature #28473 [Validator] Check the BIC country with symfony/intl (s…
…ylfabre)

This PR was merged into the 4.2-dev branch.

Discussion
----------

[Validator] Check the BIC country with symfony/intl

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #28167
| License       | MIT
| Doc PR        | N/A

Check the BIC country code against the list from Intl component instead of a simple check alphabetical test.

This PR uses the Intl component which is not part of the required dependencies of the Validator component (https://github.com/symfony/validator/blob/master/composer.json): `symfony/intl` is only required for dev. So I'm making a PR against master because it may break existing code.
But `CountryValidator` does the same so it may not be an issue after all.

Commits
-------

27bd3a8192 [Validator] Check the BIC country with symfony/intl Fix #28167
Latest commit 310b156 Sep 20, 2018
Permalink
Failed to load latest commit information.
Constraints [Validator] Check the BIC country with symfony/intl Fix #28167 Sep 19, 2018
Context [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
DataCollector Merge branch '2.8' into 3.4 Jul 26, 2018
DependencyInjection Allow validator without the translator Sep 20, 2018
Exception Mark ExceptionInterfaces throwable Aug 29, 2018
Mapping Merge branch '3.4' into 4.1 Sep 8, 2018
Resources/translations Merge branch '4.1' Sep 16, 2018
Test [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
Tests [Validator] Check the BIC country with symfony/intl Fix #28167 Sep 19, 2018
Util [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
Validator Merge branch '4.1' Sep 8, 2018
Violation [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
.gitignore Added missing files .gitignore Jul 21, 2013
CHANGELOG.md [Validator] Deprecate validating DateTimeInterface in Date|Time|DateT… Sep 8, 2018
Constraint.php Consistently throw exceptions on a single line Sep 8, 2018
ConstraintValidator.php Merge branch '2.8' into 3.4 Jul 26, 2018
ConstraintValidatorFactory.php [Validator] remove obsolete context and PropertyAccess code Feb 6, 2016
ConstraintValidatorFactoryInterface.php [DI] minor docblock fixes Oct 24, 2017
ConstraintValidatorInterface.php [Validator] removed deprecated methods Oct 1, 2015
ConstraintViolation.php Merge branch '3.4' into 4.0 Jul 26, 2018
ConstraintViolationInterface.php Merge branch '2.8' into 3.4 Sep 2, 2018
ConstraintViolationList.php Merge branch '2.8' into 3.4 Jul 26, 2018
ConstraintViolationListInterface.php Merge branch '2.8' into 3.4 Jul 26, 2018
ContainerConstraintValidatorFactory.php Merge branch '2.8' into 3.4 Jul 26, 2018
GroupSequenceProviderInterface.php fixed CS Jul 9, 2012
LICENSE fixed years in copyright Jan 3, 2018
ObjectInitializerInterface.php [Validator] fixes phpdoc reference to an interface that was removed i… May 1, 2018
README.md Update documentation link to the component Nov 25, 2016
Validation.php Add scalar typehints/return types on final/internal/private code Aug 31, 2017
ValidatorBuilder.php [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
ValidatorBuilderInterface.php [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
composer.json [Contracts] Add Translation\TranslatorInterface + decouple symfony/va… Sep 3, 2018
phpunit.xml.dist fail when detecting risky tests Apr 12, 2017

README.md