Skip to content
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

[Validator] never directly validate Existence (Required/Optional) constraints #36894

Merged
merged 1 commit into from May 30, 2020

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 21, 2020

Q A
Branch? 3.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #36637 #36723
License MIT
Doc PR

Using Optional or Required like "regular" constraints does not make any sense, but doing so didn't break before #36365. I suggest to ignore them for now and deprecate using them outside the Collection constraint in 5.2.

@xabbuh
Copy link
Member Author

xabbuh commented May 29, 2020

ping @symfony/mergers

@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit 84081ad into symfony:3.4 May 30, 2020
@xabbuh xabbuh deleted the issue-36723 branch May 31, 2020 06:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants