Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 27, 2020
1 parent 8925b4f commit 04e5d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Composer/Package/Locker.php
Expand Up @@ -258,6 +258,8 @@ public function getAliases()
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';
Expand Down

0 comments on commit 04e5d72

Please sign in to comment.