We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f59183a commit 4b4d7bbCopy full SHA for 4b4d7bb
Request.php
@@ -1573,7 +1573,7 @@ public function getContent(bool $asResource = false)
1573
public function toArray()
1574
{
1575
if ('' === $content = $this->getContent()) {
1576
- throw new JsonException('Response body is empty.');
+ throw new JsonException('Request body is empty.');
1577
}
1578
1579
try {
Tests/RequestTest.php
@@ -1260,7 +1260,7 @@ public function testToArrayEmpty()
1260
1261
$req = new Request();
1262
$this->expectException(JsonException::class);
1263
- $this->expectExceptionMessage('Response body is empty.');
+ $this->expectExceptionMessage('Request body is empty.');
1264
$req->toArray();
1265
1266
0 commit comments