Skip to content

Commit 56432ff

Browse files
Merge branch '7.4' into 8.0
* 7.4: fix merge
2 parents 0bdcd24 + cbd5f21 commit 56432ff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Controller/ControllerHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ public function json(mixed $data, int $status = 200, array $headers = [], array
148148
return new JsonResponse($json, $status, $headers, true);
149149
}
150150

151+
if (null === $data) {
152+
return new JsonResponse('null', $status, $headers, true);
153+
}
154+
151155
return new JsonResponse($data, $status, $headers);
152156
}
153157

0 commit comments

Comments
 (0)