Skip to content

Commit

Permalink
Fix content for empty json response constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Kolb committed Nov 18, 2021
1 parent 5672df2 commit 89f85f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ResponseConstructor/EmptyJsonResponseConstructor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 89f85f8

Please sign in to comment.