[HttpFoundation] Fix typo in exception message
This commit is contained in:
parent
6dce3227db
commit
2248af5857
@ -1573,7 +1573,7 @@ class Request
|
||||
public function toArray()
|
||||
{
|
||||
if ('' === $content = $this->getContent()) {
|
||||
throw new JsonException('Response body is empty.');
|
||||
throw new JsonException('Request body is empty.');
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -1260,7 +1260,7 @@ class RequestTest extends TestCase
|
||||
{
|
||||
$req = new Request();
|
||||
$this->expectException(JsonException::class);
|
||||
$this->expectExceptionMessage('Response body is empty.');
|
||||
$this->expectExceptionMessage('Request body is empty.');
|
||||
$req->toArray();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user