Commit 13db1a0
committed
minor symfony#61279 [Serializer] Allows to instantiate property when creating a
This PR was merged into the 7.4 branch.
Discussion
----------
[Serializer] Allows to instantiate property when creating a `NotNormalizableValueException`
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | yes
| Deprecations? | no
| Issues | Fix #... <!-- prefix each issue number with "Fix #"; no need to create an issue if none exists, explain below -->
| License | MIT
Currently when writing `throw new NotNormalizableValueException(...)` we cannot set all the existing property of the NotNormalizableValueException. For instance, we cannot set the property path while it would be really useful.
Commits
-------
8540f41 [Serializer] Allows to instantiate property when creating a `NotNormalizableValueException`NotNormalizableValueException (VincentLanglet)File tree
1 file changed
+14
-8
lines changed- src/Symfony/Component/Serializer/Exception
1 file changed
+14
-8
lines changedLines changed: 14 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
24 | 37 | | |
25 | 38 | | |
26 | 39 | | |
| |||
29 | 42 | | |
30 | 43 | | |
31 | 44 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
| 45 | + | |
40 | 46 | | |
41 | 47 | | |
42 | 48 | | |
| |||
0 commit comments