We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2209046 commit 96a2105Copy full SHA for 96a2105
src/Response/JsonResponse.php
@@ -25,11 +25,19 @@ protected function setBody($body)
25
return $this;
26
}
27
$body = json_decode($body, true);
28
- if (is_null($body)) {
+ if ($body === null) {
29
throw new HttpResponseException('Response data is no valid JSON string.');
30
31
parent::setBody($body);
32
33
34
35
+ /**
36
+ * @return array
37
+ */
38
+ public function getBody()
39
+ {
40
+ return parent::getBody();
41
+ }
42
+
43
0 commit comments