This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Validator
Fabien Potencier 6a27337333 bug #36365 [Validator] Fixed default group for nested composite constraints (HeahDude)
This PR was merged into the 3.4 branch.

Discussion
----------

[Validator] Fixed default group for nested composite constraints

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #33986
| License       | MIT
| Doc PR        | ~

Take a breath: when composite constraints are nested in a parent composite constraint without having non composite nested constraints (i.e empty), then the default group is not added, making the validator failing to validate in any group (including default), because there is no group at all, which should never happen.

Commits
-------

117ee34698 [Validator] Fixed default group for nested composite constraints
2020-04-12 09:44:21 +02:00
..
Constraints bug #36365 [Validator] Fixed default group for nested composite constraints (HeahDude) 2020-04-12 09:44:21 +02:00
Context [Validator] Fixed calling getters before resolving groups 2020-03-28 12:30:54 +01:00
DataCollector switched array() to [] 2019-01-16 10:39:14 +01:00
DependencyInjection switched array() to [] 2019-01-16 10:39:14 +01:00
Exception Enable the fixer enforcing fully-qualified calls for compiler-optimized functions 2018-07-24 12:05:38 +02:00
Mapping do not merge constraints within interfaces 2020-04-09 15:51:11 +03:00
Resources/translations [Validator] Add missing Ukrainian and Russian translations 2020-04-04 09:09:10 +02:00
Test [Validator] ConstraintValidatorTestCase: add missing return value to mocked validate method calls 2019-11-19 17:21:35 +01:00
Tests bug #36365 [Validator] Fixed default group for nested composite constraints (HeahDude) 2020-04-12 09:44:21 +02:00
Util [Validator] Ensure numeric subpaths do not cause errors on PHP 7.4 2019-10-25 15:06:49 +02:00
Validator bug #36245 [Validator] Fixed calling getters before resolving groups (HeahDude) 2020-03-31 20:23:36 +02:00
Violation Merge branch '2.7' into 2.8 2017-12-31 05:16:51 +01:00
.gitignore Added missing files .gitignore 2013-07-21 14:12:18 +02:00
CHANGELOG.md feature #21111 [Validator] add groups support to the Valid constraint (xabbuh) 2017-08-05 19:39:51 +02:00
composer.json Use PHP 7.4 on deps=low 2019-08-22 08:53:14 +02:00
Constraint.php Fix CS 2020-02-04 09:04:52 +01:00
ConstraintValidator.php [Validator][ConstraintValidator] Update wrong PRETTY_DATE doc 2020-02-26 21:34:36 +01:00
ConstraintValidatorFactory.php switched array() to [] 2019-01-16 10:39:14 +01:00
ConstraintValidatorFactoryInterface.php [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
ConstraintValidatorInterface.php [Validator] removed deprecated methods 2015-10-01 16:20:47 +02:00
ConstraintViolation.php [Validator] clarify stringable type annotations 2020-03-13 11:25:23 +01:00
ConstraintViolationInterface.php [Validator] clarify stringable type annotations 2020-03-13 11:25:23 +01:00
ConstraintViolationList.php switched array() to [] 2019-01-16 10:39:14 +01:00
ConstraintViolationListInterface.php switched array() to [] 2019-01-16 10:39:14 +01:00
ContainerConstraintValidatorFactory.php Fixed exception wording 2019-01-11 17:00:45 +03:00
GroupSequenceProviderInterface.php [Validator] Fix GroupSequenceProvider annotation 2019-06-20 08:43:29 +02:00
LICENSE Update year in license files 2020-01-01 12:03:25 +01:00
ObjectInitializerInterface.php [Validator] make phpdoc of ObjectInitializerInterface interface more accurate 2018-05-02 00:50:12 +02:00
phpunit.xml.dist Bump phpunit XSD version to 5.2 2018-11-11 12:18:13 +01:00
README.md Add HTTPS to a URL 2019-07-14 15:17:28 +04:30
Validation.php [CS] Apply phpdoc_annotation_without_dot 2017-09-11 13:37:52 -07:00
ValidatorBuilder.php switched array() to [] 2019-01-16 10:39:14 +01:00
ValidatorBuilderInterface.php Merge branch '2.8' into 3.3 2017-10-24 16:05:06 +02:00

Validator Component

The Validator component provides tools to validate values following the JSR-303 Bean Validation specification.

Resources