Commit 77f39fe
committed
bug symfony#53350 [Validator] fix the exception being thrown (xabbuh)
This PR was merged into the 5.4 branch.
Discussion
----------
[Validator] fix the exception being thrown
| 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 symfony#27917
Commits
-------
3a8f10b fix the exception being thrownFile tree
1 file changed
+2
-1
lines changed- src/Symfony/Component/Validator/Constraints
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | | - | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments