Closed (fixed)
Project:
Drupal core
Version:
11.3.x-dev
Component:
base system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Nov 2025 at 14:07 UTC
Updated:
8 Apr 2026 at 12:27 UTC
Jump to comment: Most recent
Since symfony/console 7.4: The "Symfony\Component\Console\Application::add()" method is deprecated and will be removed in Symfony 8.0, use "Symfony\Component\Console\Application::addCommand()" instead.
Change references to the deprecated method.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aryan singh commentedWorking..
Comment #4
aryan singh commentedThe pipeline fails because the Drupal 11.x core still uses "symfony/console": "^7.3", where addCommand() method does not yet exist.
Comment #5
longwaveThanks for working on this - looks like this has to wait until #3554533: Update to Symfony 7.4.0-BETA2 is committed.
Comment #6
longwaveThe related issue landed so this should be doable now.
Comment #7
smustgrave commentedWas hard to do a search for ->add( but did some spot checking and all instances calling Symfony console add I believe have been replaced.
Comment #8
catchNeeds a rebase.
Comment #10
quietone commentedRebase with a simple conflict in .deprecation-ignore.txt. Tests are passing so setting back to RTBC.
Comment #11
xjmComment #12
xjmComment #13
xjmComment #14
catchCommitted/pushed to 11.x and cherry-picked to 11.3.x, thanks!
Comment #20
maheshv commentedI ran the frontend command after upgrading Drupal to version 11.3.5, but I am still encountering this issue.
ERROR: Since symfony/console 7.4: The "Symfony\Component\Console\Application::add()" method is deprecated and will be removed in Symfony 8.0, use "Symfony\Component\Console\Application::addCommand()" instead.
in /app/vendor/symfony/deprecation-contracts/function.php:25
Comment #21
maheshv commentedIs this code available in Drupal 11.3.5? I didn't see it in the release notes.
Comment #22
cilefen commented@maheshv, Drupal Core corrected this deprecation. I have been suggesting in #3583418: ERROR: Since symfony/console 7.4: The Symfony\Component\Console\Application::add() is deprecated in Symfony 7.4 that what you see originates from Lando code.