Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Fatal error: Declaration of Doctrine\DBAL\Tools\Console\Command\RunSqlCommand::execute must be compatible with Symfony\Component\Console\Command\Command::execute #6162

Closed
krukiv-kut opened this issue Sep 26, 2023 · 2 comments

Comments

@krukiv-kut
Copy link

Given environment:

  • Symfony CLI version 5.5.9
  • Composer version 2.6.3
  • PHP 8.2.10 (cli)
  • OS - macOS Ventura 13.5.2 (22G91)

doctrine/dbal [version: 3.6.7]

I was just going to start, so.. simply launched the command:
symfony new symfony7project --version="7.0.*@dev" --webapp

Result:
Executing script cache:clear [KO] [KO] Script cache:clear returned with error code 255 !! PHP Fatal error: Declaration of Doctrine\DBAL\Tools\Console\Command\RunSqlCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/.../vendor/doctrine/dbal/src/Tools/Console/Command/RunSqlCommand.php on line 65 !! !! Fatal error: Declaration of Doctrine\DBAL\Tools\Console\Command\RunSqlCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /Users/.../vendor/doctrine/dbal/src/Tools/Console/Command/RunSqlCommand.php on line 65 !! Symfony\Component\ErrorHandler\Error\FatalError {#5479 !! -error: array:4 [ !! "type" => 64 !! "message" => "Declaration of Doctrine\DBAL\Tools\Console\Command\RunSqlCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int" !! "file" => "/Users/.../vendor/doctrine/dbal/src/Tools/Console/Command/RunSqlCommand.php" !! "line" => 65 !! ] !! #message: "Compile Error: Declaration of Doctrine\DBAL\Tools\Console\Command\RunSqlCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Symfony\Component\Console\Command\Command::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int" !! #code: 0 !! #file: "./vendor/doctrine/dbal/src/Tools/Console/Command/RunSqlCommand.php" !! #line: 65 !! } !! Script @auto-scripts was called via post-update-cmd

@derrabus
Copy link
Member

Duplicate of #6136.

@derrabus derrabus closed this as not planned Won't fix, can't repro, duplicate, stale Sep 26, 2023
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants