Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mayaarjunan's avatar

Error after executing composer update

Hi, After executed the composer update lumen return error message": "Symfony\Component\HttpFoundation\Request::getPayload(): Return value must be of type Symfony\Component\HttpFoundation\InputBag, Symfony\Component\HttpFoundation\ParameterBag returned", "exception": "TypeError", "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\symfony\http-foundation\Request.php", "line": 1517, "trace": [ { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\symfony\psr-http-message-bridge\Factory\PsrHttpFactory.php", "line": 84, "function": "getPayload", "class": "Symfony\Component\HttpFoundation\Request", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\laravel\lumen-framework\src\Application.php", "line": 586, "function": "createRequest", "class": "Symfony\Bridge\PsrHttpMessage\Factory\PsrHttpFactory", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\illuminate\container\Container.php", "line": 885, "function": "Laravel\Lumen\{closure}", "class": "Laravel\Lumen\Application", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\illuminate\container\Container.php", "line": 770, "function": "build", "class": "Illuminate\Container\Container", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\illuminate\container\Container.php", "line": 706, "function": "resolve", "class": "Illuminate\Container\Container", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\laravel\lumen-framework\src\Application.php", "line": 327, "function": "make", "class": "Illuminate\Container\Container", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\sentry\sentry-laravel\src\Sentry\Laravel\Http\SetRequestMiddleware.php", "line": 36, "function": "make", "class": "Laravel\Lumen\Application", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\sentry\sentry-laravel\src\Sentry\Laravel\Http\SetRequestMiddleware.php", "line": 23, "function": "resolvePsrRequest", "class": "Sentry\Laravel\Http\SetRequestMiddleware", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\illuminate\pipeline\Pipeline.php", "line": 180, "function": "handle", "class": "Sentry\Laravel\Http\SetRequestMiddleware", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\laravel\lumen-framework\src\Routing\Pipeline.php", "line": 30, "function": "Illuminate\Pipeline\{closure}", "class": "Illuminate\Pipeline\Pipeline", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\app\Http\Middleware\CorsMiddleware.php", "line": 30, "function": "Laravel\Lumen\Routing\{closure}", "class": "Laravel\Lumen\Routing\Pipeline", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\illuminate\pipeline\Pipeline.php", "line": 180, "function": "handle", "class": "App\Http\Middleware\CorsMiddleware", "type": "->" }, { "file": "C:\xampp\htdocs\octilus\talc_claim\talc064-api-be\prod-web\talc064-api-be\vendor\laravel\lumen-framew

Composer.json code is like below

"require": { "php": "^8.0", "aws/aws-sdk-php": "^3.269", "barryvdh/laravel-dompdf": "^2.0", "illuminate/redis": "^9.52", "irazasyed/larasupport": "^1.1", "laravel/lumen-framework": "^9.0", "league/flysystem-aws-s3-v3": "^3.15", "monolog/monolog": "^2.9", "predis/predis": "^2.1", "sendgrid/sendgrid": "^8.0", "sentry/sentry-laravel": "^3.4", "setasign/fpdf": "^1.8", "setasign/fpdi": "^2.3", "shiftonelabs/laravel-sqs-fifo-queue": "^3.0", "webpatser/laravel-uuid": "^4.0" }, "require-dev": { "fakerphp/faker": "^1.9.1", "mockery/mockery": "^1.4.4", "phpunit/phpunit": "^9.5.10" }, "autoload": { "psr-4": { "App\": "app/", "Database\Factories\": "database/factories/", "Database\Seeders\": "database/seeders/" } }, "autoload-dev": { "psr-4": { "Tests\": "tests/" } }, "scripts": {

0 likes
4 replies
jlrdw's avatar

These errors are always related to a package not meeting dependency requirements. So check dependencies in the composer.json files and fix them as needed.

Sometimes a package isn't updated, check this also.

You can try fixing one at a time.

DhanuJaya's avatar

add following in composer.json require section "symfony/http-foundation": "6.2",

then clear cache

Please or to participate in this conversation.