symfony / flex

Composer plugin for Symfony
MIT License
4.15k stars 181 forks source link

Symfony Flex 1.8.5 is not compatible with Composer 2.7.0 #1012

Closed jakubtobiasz closed 7 months ago

jakubtobiasz commented 7 months ago

About the hour ago the Composer 2.7.0 has been released. It seems it breaks symfony/flex: 1.8.5.

CI: https://github.com/Sylius/Sylius/actions/runs/7832264915/job/21370567557?pr=15823

PHP Fatal error: Declaration of Symfony\Flex\Command\UpdateCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output) must be compatible with Composer\Command\UpdateCommand::execute(Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output): int in /home/runner/.composer/vendor/symfony/flex/src/Command/UpdateCommand.php on line 31

Update: I didn't notice we're using an old version of symfony/flex :/.