From c46b75de81b4035229bba44e035086b75092d367 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 15 Oct 2020 16:16:00 +0200 Subject: [PATCH] Allow any non-numeric version to be used for flex as we can not establish if they are compatible --- src/Composer/Plugin/PluginManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index 0b5800e2d..17c3dbc50 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/src/Composer/Plugin/PluginManager.php @@ -150,7 +150,7 @@ class PluginManager return; } - if ($package->getName() === 'symfony/flex' && version_compare($package->getVersion(), '1.9.8', '<') && $package->getVersion() !== 'dev-main') { + if ($package->getName() === 'symfony/flex' && preg_match('{^[0-9.]+$}', $package->getVersion()) && version_compare($package->getVersion(), '1.9.8', '<')) { $this->io->writeError('The "' . $package->getName() . '" plugin was skipped because it is not compatible with Composer 2+. Make sure to update it to version 1.9.8 or greater.'); return;