Skip to content

Commit 96a2105

Browse files
author
Martin Brecht-Precht
committed
Fixed some minot issues.
1 parent 2209046 commit 96a2105

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Response/JsonResponse.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ protected function setBody($body)
2525
return $this;
2626
}
2727
$body = json_decode($body, true);
28-
if (is_null($body)) {
28+
if ($body === null) {
2929
throw new HttpResponseException('Response data is no valid JSON string.');
3030
}
3131
parent::setBody($body);
3232
return $this;
3333
}
3434

35+
/**
36+
* @return array
37+
*/
38+
public function getBody()
39+
{
40+
return parent::getBody();
41+
}
42+
3543
}

0 commit comments

Comments
 (0)