diff --git a/src/Composer/Command/HomeCommand.php b/src/Composer/Command/HomeCommand.php index 2a2afaa43..4a550ff60 100644 --- a/src/Composer/Command/HomeCommand.php +++ b/src/Composer/Command/HomeCommand.php @@ -64,7 +64,7 @@ EOT $packages = $input->getArgument('packages'); if (!$packages) { $io->writeError('No package specified, opening homepage for the root package'); - $packages = [$this->getComposer()->getPackage()->getName()]; + $packages = array($this->getComposer()->getPackage()->getName()); } foreach ($packages as $packageName) {