Skip to content

Commit 4b4d7bb

Browse files
carlos-eafabpot
authored andcommitted
[HttpFoundation] Fix typo in exception message
1 parent f59183a commit 4b4d7bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1573,7 +1573,7 @@ public function getContent(bool $asResource = false)
15731573
public function toArray()
15741574
{
15751575
if ('' === $content = $this->getContent()) {
1576-
throw new JsonException('Response body is empty.');
1576+
throw new JsonException('Request body is empty.');
15771577
}
15781578

15791579
try {

Tests/RequestTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1260,7 +1260,7 @@ public function testToArrayEmpty()
12601260
{
12611261
$req = new Request();
12621262
$this->expectException(JsonException::class);
1263-
$this->expectExceptionMessage('Response body is empty.');
1263+
$this->expectExceptionMessage('Request body is empty.');
12641264
$req->toArray();
12651265
}
12661266

0 commit comments

Comments
 (0)