You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered:
Given environment:
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
The text was updated successfully, but these errors were encountered: