From 743d551399a675230fdb5c2a9cdaaa596e8a6af2 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 14 Oct 2020 17:16:46 +0200 Subject: [PATCH] Fix using show command to show platform packages, and allow using it to show replacers too by using the replaced name, fixes #7628 --- src/Composer/Command/ShowCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index f635dc4a5..13d6de93e 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -584,7 +584,7 @@ EOT $matchedPackage = null; $versions = array(); - $pool = $repositorySet->createPoolForPackage($name); + $pool = $repositorySet->createPoolWithAllPackages(); $matches = $pool->whatProvides($name, $constraint); foreach ($matches as $index => $package) { // select an exact match if it is in the installed repo and no specific version was required