Commit 90ff119
committed
minor #16977 [Serializer] fix(serializer): missing empty_array_as_object in example (alanpoulain)
This PR was merged into the 5.4 branch.
Discussion
----------
[Serializer] fix(serializer): missing empty_array_as_object in example
This PR:
- Replaces `empty_iterable_as_object` by `preserve_empty_objects`, like it should be.
- Adds `empty_array_as_object` to example in Serializer Context.
- Removes the mention `by default`, since it's `false` by default.
Related:
- #15554
- #15580
- symfony/symfony#42240
- symfony/symfony#42297
Commits
-------
cc54517 fix(serializer): missing empty_array_as_object in example1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 | | |
113 | 116 | | |
114 | 117 | | |
115 | 118 | | |
116 | | - | |
| 119 | + | |
117 | 120 | | |
118 | 121 | | |
119 | 122 | | |
| |||
0 commit comments