-
-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Description
Version(s) affected
4.1.0
Description
In some console commands you use #[AsCommand(help: ... )
The $help param is added to AsCommand attribute in symfony/console 7.3, but in composer.json only symfony/console ^7.0 is required.
In projects with symfony <7.3 this results
Error {#5930
!! #message: "Unknown named parameter $help"
How to reproduce
composer.json
{
"autoload": {
"psr-4": {
"App\\": "src/"
}
},
"require": {
"symfony/console": "7.2.*",
"symfony/dotenv": "7.2.*",
"symfony/flex": "^2.9",
"symfony/framework-bundle": "7.2.*",
"symfony/runtime": "7.2.*",
"symfony/yaml": "7.2.*",
"web-token/jwt-bundle": "^4.1",
"web-token/jwt-library": "^4.1"
},
"config": {
"allow-plugins": {
"symfony/flex": true,
"symfony/runtime": true
}
},
"extra": {
"symfony": {
"require": "7.2.*"
}
}
}composer install
bin/console cache:clearPossible Solution
update dependency to symfony/console ^7.3
Additional Context
No response
Metadata
Metadata
Assignees
Labels
No labels