Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cdf866d

Browse files
committed
CS
1 parent ab7bb6a commit cdf866d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1584,7 +1584,7 @@ public function getContentArray(): array
15841584
try {
15851585
$content = json_decode($content, true, 512, \JSON_BIGINT_AS_STRING | (\PHP_VERSION_ID >= 70300 ? \JSON_THROW_ON_ERROR : 0));
15861586
} catch (\JsonException $e) {
1587-
throw new JsonException('Could not decode request body', $e->getCode(), $e);
1587+
throw new JsonException('Could not decode request body.', $e->getCode(), $e);
15881588
}
15891589

15901590
if (\PHP_VERSION_ID < 70300 && \JSON_ERROR_NONE !== json_last_error()) {

src/Symfony/Component/HttpFoundation/Tests/RequestTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1271,8 +1271,8 @@ public function testGetContentArray()
12711271
{
12721272
$req = new Request([], [], [], [], [], [], json_encode([]));
12731273
$this->assertEquals([], $req->getContentArray());
1274-
$req = new Request([], [], [], [], [], [], json_encode(['foo'=>'bar']));
1275-
$this->assertEquals(['foo'=>'bar'], $req->getContentArray());
1274+
$req = new Request([], [], [], [], [], [], json_encode(['foo' => 'bar']));
1275+
$this->assertEquals(['foo' => 'bar'], $req->getContentArray());
12761276
}
12771277

12781278
/**

0 commit comments

Comments
 (0)