Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit d6f886f

Browse files
samsonasikweierophinney
authored andcommitted
documentation update for json pretty print
1 parent c64d4c9 commit d6f886f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/book/response.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,11 @@ where:
116116
- `int $jsonFlags` is an integer bitmask of [JSON encoding
117117
constants](http://php.net/manual/en/json.constants.php) to use with
118118
`json_encode()` when generating JSON problem details. If you pass a `null`
119-
value, `JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE |
120-
JSON_PRESERVE_ZERO_FRACTION` will be used.
119+
value, and the `$isDebug` flag is true,
120+
`JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION`
121+
will be used; otherwise,
122+
`JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_PRESERVE_ZERO_FRACTION`
123+
will be used.
121124
- `bool $exceptionDetailsInResponse` is a flag indicating whether or not to
122125
include exception details (in particular, the message) when creating the
123126
problem details response. By default, for non-`ProblemDetailsExceptionInterface`

0 commit comments

Comments
 (0)