From 89f85f8543c1556114a0dcde29d88b7c5317fecd Mon Sep 17 00:00:00 2001 From: Christian Kolb Date: Thu, 18 Nov 2021 23:39:17 +0100 Subject: [PATCH] Fix content for empty json response constructor --- src/ResponseConstructor/EmptyJsonResponseConstructor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ResponseConstructor/EmptyJsonResponseConstructor.php b/src/ResponseConstructor/EmptyJsonResponseConstructor.php index 9bada47..fcd1b47 100644 --- a/src/ResponseConstructor/EmptyJsonResponseConstructor.php +++ b/src/ResponseConstructor/EmptyJsonResponseConstructor.php @@ -11,6 +11,6 @@ final class EmptyJsonResponseConstructor implements ResponseConstructorInterface { public function constructResponse($data): JsonResponse { - return new JsonResponse(null, Response::HTTP_NO_CONTENT, [], true); + return new JsonResponse('', Response::HTTP_NO_CONTENT, [], true); } }