mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix project aliases being redownloaded since they had no version
This commit is contained in:
parent
983de81b1d
commit
9da7fbbf37
3 changed files with 11 additions and 4 deletions
|
@ -102,9 +102,9 @@ class ArrayRepository implements RepositoryInterface
|
|||
}
|
||||
}
|
||||
|
||||
protected function createAliasPackage(PackageInterface $package)
|
||||
protected function createAliasPackage(PackageInterface $package, $alias = null, $prettyAlias = null)
|
||||
{
|
||||
return new AliasPackage($package, $package->getAlias(), $package->getPrettyAlias());
|
||||
return new AliasPackage($package, $alias ?: $package->getAlias(), $prettyAlias ?: $package->getPrettyAlias());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue