mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +00:00
Fix usage of DefaultPolicy in show command
This commit is contained in:
parent
23b3118065
commit
620497a2ed
1 changed files with 1 additions and 1 deletions
|
@ -563,7 +563,7 @@ EOT
|
|||
$pool = $repositorySet->createPoolForPackage($package->getName());
|
||||
|
||||
// select preferred package according to policy rules
|
||||
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, array(), $matches)) {
|
||||
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, $matches)) {
|
||||
$matchedPackage = $pool->literalToPackage($preferred[0]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue