From a908e22a91895fc63cfa173667ef395b3b6f5447 Mon Sep 17 00:00:00 2001 From: Dane Powell Date: Sat, 6 Apr 2019 08:53:32 -0700 Subject: [PATCH] Fixed code style issues. --- src/Composer/Plugin/PluginManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Composer/Plugin/PluginManager.php b/src/Composer/Plugin/PluginManager.php index da9fb5c20..cca4efe54 100644 --- a/src/Composer/Plugin/PluginManager.php +++ b/src/Composer/Plugin/PluginManager.php @@ -255,7 +255,8 @@ class PluginManager { $packages = $repo->getPackages(); $generator = $this->composer->getAutoloadGenerator(); - $packageMap = $generator->buildPackageMap($this->composer->getInstallationManager(), $this->composer->getPackage(), $packages); + $rootPackage = $this->composer->getPackage(); /** @var PackageInterface $rootPackage */ + $packageMap = $generator->buildPackageMap($this->composer->getInstallationManager(), $rootPackage, $packages); $sortedPackageMap = array_reverse($generator->sortPackageMap($packageMap)); foreach ($sortedPackageMap as $fullPackage) { $package = $fullPackage[0]; /** @var PackageInterface $package */