1
0
Fork 0
pull/9374/head
Jordi Boggiano 2020-10-27 20:53:54 +01:00
parent 8925b4f596
commit 04e5d725f4
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 0 deletions

View File

@ -258,6 +258,8 @@ class Locker
return array();
}
// forward compatibility with Composer 2 lock files created
// before https://github.com/composer/composer/issues/9337 was fixed
foreach ($lockData['aliases'] as $index => $alias) {
if (in_array($alias['version'], array('dev-master', 'dev-default', 'dev-trunk'), true)) {
$lockData['aliases'][$index]['version'] = '9999999-dev';