Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
json output for inf nan values
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorkmaz committed Mar 21, 2019
1 parent 467e218 commit 3918d94
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ApplicationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function returnResponse() : ResponseInterface
return new JsonResponse(
$this->controllerResponse->getData(),
$this->controllerResponse->getStatusCode(),
$this->getResponseHeaders()
$this->getResponseHeaders(),
JsonResponse::DEFAULT_JSON_FLAGS | JSON_PARTIAL_OUTPUT_ON_ERROR
);
break;
case Router::TEXT:
Expand Down

0 comments on commit 3918d94

Please sign in to comment.