From ee4afa29e77b57ae8d03254149788a30c7a40c39 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Wed, 1 Jul 2020 11:17:52 +0200 Subject: [PATCH] Include dev packages in locked package listings for show command --- src/Composer/Command/ShowCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index c39aba760..6a2219df0 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -175,7 +175,7 @@ EOT $localRepo = $composer->getRepositoryManager()->getLocalRepository(); $locker = $composer->getLocker(); if ($locker->isLocked()) { - $lockedRepo = $locker->getLockedRepository(); + $lockedRepo = $locker->getLockedRepository(true); $installedRepo = new InstalledRepository(array($lockedRepo, $localRepo, $platformRepo)); } else { $installedRepo = new InstalledRepository(array($localRepo, $platformRepo)); @@ -191,7 +191,7 @@ EOT throw new \UnexpectedValueException('A valid composer.json and composer.lock files is required to run this command with --locked'); } $locker = $composer->getLocker(); - $lockedRepo = $locker->getLockedRepository(); + $lockedRepo = $locker->getLockedRepository(true); $installedRepo = new InstalledRepository(array($lockedRepo)); $repos = new CompositeRepository(array_merge(array($installedRepo), $composer->getRepositoryManager()->getRepositories())); } else {