diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 92db88cfa..4954ca76c 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -442,7 +442,7 @@ EOT // Collect existing packages $composer = $this->getComposer(false); $installedRepo = $composer ? $composer->getRepositoryManager()->getLocalRepository() : null; - $existingPackages = []; + $existingPackages = array(); if ($installedRepo) { foreach ($installedRepo->getPackages() as $package) { $existingPackages[] = $package->getName();