From aa7afbdcbeff42f79bbaf24de429d16bda210a0e Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 31 Aug 2013 10:50:02 -0400 Subject: [PATCH] Fix to act on the root package --- src/ComponentInstaller/Installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ComponentInstaller/Installer.php b/src/ComponentInstaller/Installer.php index c9580de..e9c9ab3 100644 --- a/src/ComponentInstaller/Installer.php +++ b/src/ComponentInstaller/Installer.php @@ -43,8 +43,8 @@ public function supports($packageType) $rootPackage = isset($this->composer) ? $this->composer->getPackage() : null; if (isset($rootPackage)) { // Ensure we get the root package rather than its alias. - while ($package instanceof AliasPackage) { - $package = $package->getAliasOf(); + while ($rootPackage instanceof AliasPackage) { + $rootPackage = $rootPackage->getAliasOf(); } // Make sure the root package can override the available scripts.