diff --git a/src/Flex.php b/src/Flex.php index a45ce90df..30be50649 100644 --- a/src/Flex.php +++ b/src/Flex.php @@ -391,6 +391,10 @@ public function recordOperations(InstallerEvent $event) $versionParser = new VersionParser(); $packages = []; foreach ($this->lock->all() as $name => $info) { + if ('9999999.9999999' === $info['version']) { + // Fix invalid versions found in some lock files + $info['version'] = '99999.9999999'; + } $packages[] = new Package($name, $versionParser->normalize($info['version']), $info['version']); }