Commit ec4e5a7
committed
This PR was merged into the 6.4 branch.
Discussion
----------
[FrameworkBundle] work around limitation in `JsonResponse` when the data is `null`
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix #62404
| License | MIT
I did abstain from fixing this in `JsonResponse` since https://github.com/symfony/symfony/blob/6769c4c670736adad5d77fe02c25f313e10971b6/src/Symfony/Component/HttpFoundation/JsonResponse.php#L47 has been there for years since 2d07a17
Commits
-------
c0287d5 work around limitation in JsonResponse when the data is null
File tree
2 files changed
+35
-0
lines changed- src/Symfony/Bundle/FrameworkBundle
- Controller
- Tests/Controller
2 files changed
+35
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
160 | 164 | | |
161 | 165 | | |
162 | 166 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
227 | 258 | | |
228 | 259 | | |
229 | 260 | | |
| |||
0 commit comments