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] fix the exception being thrown #53350

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Jan 2, 2024

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Issues
License MIT

An UnexpectedValueException is caught and transformed into a violation (UnexpectedTypeException indicates a misconfiguration of a constraint and is not caught).

see also #27917

@chalasr
Copy link
Member

chalasr commented Jan 2, 2024

Thanks @xabbuh.

@chalasr chalasr merged commit 77f39fe into symfony:5.4 Jan 2, 2024
9 of 11 checks passed
@xabbuh xabbuh deleted the constraint-exception-type branch January 2, 2024 17:56
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

4 participants