Browse Source

Fix 5.3 build

Jordi Boggiano 5 years ago
parent
commit
e4b495ca16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Composer/Command/InitCommand.php

+ 1 - 1
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();