1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Optimize show -a by loading only the requested package (#11659)

Fixes #11648
This commit is contained in:
Jordi Boggiano 2023-09-27 11:28:33 +02:00 committed by GitHub
parent c7e696dbde
commit 892eaacedf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 59 additions and 13 deletions

View file

@ -126,7 +126,7 @@ class PoolBuilderTest extends TestCase
if (isset($requestData['allowTransitiveDeps']) && $requestData['allowTransitiveDeps']) {
$transitiveDeps = Request::UPDATE_LISTED_WITH_TRANSITIVE_DEPS;
}
$request->setUpdateAllowList(array_flip($requestData['allowList']), $transitiveDeps);
$request->setUpdateAllowList($requestData['allowList'], $transitiveDeps);
}
foreach ($fixed as $fixedPackage) {