mirror of
https://github.com/composer/composer
synced 2025-05-10 00:53:06 +00:00
Improve error reporting for RULE_PACKAGE_ALIAS
This commit is contained in:
parent
0ea9eafcaf
commit
2ddf4346ef
2 changed files with 5 additions and 2 deletions
|
@ -288,7 +288,10 @@ abstract class Rule
|
|||
|
||||
return 'Conclusion: '.$ruleText.$learnedString;
|
||||
case self::RULE_PACKAGE_ALIAS:
|
||||
return $ruleText;
|
||||
$aliasPackage = $this->deduplicateMasterAlias($pool->literalToPackage($literals[0]));
|
||||
$package = $this->deduplicateMasterAlias($pool->literalToPackage($literals[1]));
|
||||
|
||||
return $aliasPackage->getPrettyString() .' is an alias of '.$package->getPrettyString().' and thus requires it to be installed too.';
|
||||
default:
|
||||
return '('.$ruleText.')';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue