mirror of
https://github.com/composer/composer
synced 2025-05-09 16:42:57 +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();
|
||||
}
|
||||
|
||||
$pool = $repositorySet->createPoolForPackage($package->getName());
|
||||
$pool = $repositorySet->createPoolForPackage($name);
|
||||
|
||||
// select preferred package according to policy rules
|
||||
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, $matches)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue