1
0
Fork 0

Show alias of version in package lists in problems

pull/8690/head
Jordi Boggiano 2020-03-13 14:27:27 +01:00
parent 7cca451312
commit 3e19e3b0f1
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 1 deletions

View File

@ -13,6 +13,7 @@
namespace Composer\DependencyResolver;
use Composer\Package\CompletePackageInterface;
use Composer\Package\AliasPackage;
use Composer\Repository\RepositorySet;
use Composer\Repository\LockArrayRepository;
use Composer\Semver\Constraint\Constraint;
@ -290,7 +291,7 @@ class Problem
$prepared = array();
foreach ($packages as $package) {
$prepared[$package->getName()]['name'] = $package->getPrettyName();
$prepared[$package->getName()]['versions'][$package->getVersion()] = $package->getPrettyVersion();
$prepared[$package->getName()]['versions'][$package->getVersion()] = $package->getPrettyVersion().($package instanceof AliasPackage ? ' (alias of '.$package->getAliasOf()->getPrettyVersion().')' : '');
}
foreach ($prepared as $name => $package) {
// remove the implicit dev-master alias to avoid cruft in the display