mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Fix show command when no package is found
This commit is contained in:
parent
8bb472a608
commit
98860b8619
1 changed files with 1 additions and 1 deletions
|
@ -560,7 +560,7 @@ EOT
|
||||||
$matches[$index] = $package->getId();
|
$matches[$index] = $package->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
$pool = $repositorySet->createPoolForPackage($package->getName());
|
$pool = $repositorySet->createPoolForPackage($name);
|
||||||
|
|
||||||
// select preferred package according to policy rules
|
// select preferred package according to policy rules
|
||||||
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, $matches)) {
|
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, $matches)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue