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); } }