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

Commit 897bc5f

Browse files
committed
Merge branch 'hotfix/71'
Close #71
2 parents f852aea + 972f7a9 commit 897bc5f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ All notable changes to this project will be documented in this file, in reverse
1919

2020
### Fixed
2121

22-
- Nothing.
22+
- [#71](https://github.com/zendframework/zend-diactoros/pull/71) fixes the
23+
docblock of the `JsonResponse` constructor to typehint the `$data` argument
24+
as `mixed`.
2325

2426
## 1.1.2 - 2015-07-12
2527

src/Response/JsonResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class JsonResponse extends Response
3535
* - JSON_HEX_AMP
3636
* - JSON_HEX_QUOT
3737
*
38-
* @param string $data Data to convert to JSON.
38+
* @param mixed $data Data to convert to JSON.
3939
* @param int $status Integer status code for the response; 200 by default.
4040
* @param array $headers Array of headers to use at initialization.
4141
* @param int $encodingOptions JSON encoding options to use.

0 commit comments

Comments
 (0)