mirror of
https://github.com/composer/composer
synced 2025-05-10 17:12:51 +00:00
Fix composer show -a usage, fixes #9304
This commit is contained in:
parent
99a5469b5e
commit
14ec957e96
2 changed files with 9 additions and 1 deletions
|
@ -280,6 +280,10 @@ class RepositorySet
|
|||
$request = new Request($lockedRepo);
|
||||
|
||||
foreach ($packageNames as $packageName) {
|
||||
if (PlatformRepository::isPlatformPackage($packageName)) {
|
||||
throw new \LogicException('createPoolForPackage(s) can not be used for platform packages, as they are never loaded by the PoolBuilder which expects them to be fixed. Use createPoolWithAllPackages or pass in a proper request with the platform packages you need fixed in it.');
|
||||
}
|
||||
|
||||
$request->requireName($packageName);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue