diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index e3c2667a7d204..286c329614edc 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -1588,7 +1588,7 @@ public function toArray(): array } if (\PHP_VERSION_ID < 70300 && \JSON_ERROR_NONE !== json_last_error()) { - throw new JsonException('Could not decode request body: ' . json_last_error_msg(), json_last_error()); + throw new JsonException('Could not decode request body: '.json_last_error_msg(), json_last_error()); } if (!\is_array($content)) {