From 41720e9b70471c9396ae228fafd3ce1e408c53d8 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 28 Jan 2020 15:56:52 +0100 Subject: [PATCH] Show abandoned warnings from the locked repo --- src/Composer/Installer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 45778a5b0..b933268c0 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -262,9 +262,9 @@ class Installer $this->suggestedPackagesReporter->output($this->locker->getLockedRepository($this->devMode)); } - // TODO probably makes more sense to do this on the lock file only? - # Find abandoned packages and warn user - foreach ($localRepo->getPackages() as $package) { + // Find abandoned packages and warn user + $lockedRepository = $this->locker->getLockedRepository(true); + foreach ($lockedRepository->getPackages() as $package) { if (!$package instanceof CompletePackage || !$package->isAbandoned()) { continue; }