Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #33834 [Validator] Fix ValidValidator group cascading usage (fanc…
…yweb) This PR was merged into the 3.4 branch. Discussion ---------- [Validator] Fix ValidValidator group cascading usage | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - `$this->context->getGroup()` returns `string` or `null`. `ContextualValidatorInterface::validate()` 3rd argument accepts an array but it must not contain `null` (its contract doesn't allow it). If it does, it will fail in `RecursiveContextualValidator::validateInGroup()` for example because of the `string` scalar type on the `$group` argument. (on 4.4) Note that in our "common" usage of the `Valid` constraint, the group in its validator will never be `null` because this constraint has a special treatment. However, if this validator is reused in a custom way, it can fail. Commits ------- 72684b0 [Validator] Fix ValidValidator group cascading usage
- Loading branch information