Skip to content

Problems with symfony/console 8.x #85

@donquixote

Description

@donquixote

In commands/web/drupal, we call Symfony\Component\Console\Application::add().
This is:

  • deprecated in symfony/console 7.
  • removed in symfony/console 8.

So we see this:

PHP Fatal error: Uncaught Error: Call to undefined method Symfony\Component\Console\Application::add() in /mnt/ddev_config/commands/web/drupal:43

Instead, we need to call ->addCommand().

After replacing all of these ->add() calls, we get this instead:

PHP Fatal error: Declaration of DrupalCoreDev\Command\UninstallCommand::configure() must be compatible with Symfony\Component\Console\Command\Command::configure(): void in /var/www/html/.ddev/core-dev/src/Command/UninstallCommand.php on line 15

(EDIT: Removed last part)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions