Jordi Boggiano 5 anni fa
parent
commit
e4b495ca16
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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();