Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor #35816 [Validator] Remove specific check for Valid targets (ogi…
…zanagi) This PR was merged into the 3.4 branch. Discussion ---------- [Validator] Remove specific check for Valid targets | Q | A | ------------- | --- | Branch? | 3.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | N/A <!-- prefix each issue number with "Fix #", if any --> | License | MIT | Doc PR | N/A As covered by `ClassMetadataTest::testAddConstraintDoesNotAcceptValid`, this check is useless, as `Valid` already accepts only properties as targets. This check is a [leftover of a time](9b07b0c) `Valid` was extending `Traverse` which was allowing classes & properties. The `Valid` targets are properly checked by the lines above, the same way as other constraints. Commits ------- 0086562 [Validator] Remove specific check for Valid targets
- Loading branch information