Hi there, i got from my old proj cabinet an old website in docker.
but i got this error qhile building docker progject:
7.901 - Installing symfony/flex (v2.1.8): Extracting archive
8.029
8.029 Fatal error: Declaration of Symfony\Flex\Command\RemoveCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Composer\Command\RemoveCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /app/vendor/symfony/flex/src/Command/RemoveCommand.php on line 30
It is a PHP Composer error, not Docker, so you have to find out what that PHP error message means. And it means that the PHP code of Flex is not compatible with the Composer version so the composer subcommand that Flex would provide can’t work…
If you do a downgrade version to composer version, them it will work.
It seems that composer launch a new release and breaks backwards compatibility.
We did downgrade to 2.3.10 composer version and it work.