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

Commit b1dba8a

Browse files
committed
Merge branch 'hotfix/214'
Close #214
2 parents 46885d1 + 767965b commit b1dba8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ $htmlResponse = StringResponse::html($html, 404, [
100100
'Content-Type' => [ 'application/xhtml+xml' ],
101101
]);
102102

103-
$jsonResponse = StringResponse::html($html, 422, [
103+
$jsonResponse = StringResponse::json($data, 422, [
104104
'Content-Type' => [ 'application/problem+json' ],
105105
]);
106106
```

0 commit comments

Comments
 (0)