Skip to content

Commit 8b291a4

Browse files
Remove array return type from Request::toArray()
1 parent 8fa6b36 commit 8b291a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,8 +1574,10 @@ public function getContent(bool $asResource = false)
15741574
* Gets the request body decoded as array, typically from a JSON payload.
15751575
*
15761576
* @throws JsonException When the body cannot be decoded to an array
1577+
*
1578+
* @return array
15771579
*/
1578-
public function toArray(): array
1580+
public function toArray()
15791581
{
15801582
if ('' === $content = $this->getContent()) {
15811583
throw new JsonException('Response body is empty.');

0 commit comments

Comments
 (0)