Skip to content

Commit 9dcfc64

Browse files
committed
:octocat: docfix
1 parent 2e86cc3 commit 9dcfc64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Psr7/message_helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ function normalize_nested_file_spec(array $files = []):array{
387387
* @param \Psr\Http\Message\ResponseInterface $response
388388
* @param bool|null $assoc
389389
*
390-
* @return mixed
390+
* @return \stdClass|array|bool
391391
*/
392392
function get_json(ResponseInterface $response, bool $assoc = null){
393393
return json_decode($response->getBody()->getContents(), $assoc);
@@ -397,7 +397,7 @@ function get_json(ResponseInterface $response, bool $assoc = null){
397397
* @param \Psr\Http\Message\ResponseInterface $response
398398
* @param bool|null $assoc
399399
*
400-
* @return \SimpleXMLElement
400+
* @return \SimpleXMLElement|array|bool
401401
*/
402402
function get_xml(ResponseInterface $response, bool $assoc = null){
403403
$data = simplexml_load_string($response->getBody()->getContents());

0 commit comments

Comments
 (0)