Procházet zdrojové kódy

Fix uninitialized var, fixes #2539

Jordi Boggiano před 11 roky
rodič
revize
a5c6319d46
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      src/Composer/Command/LicensesCommand.php

+ 1 - 0
src/Composer/Command/LicensesCommand.php

@@ -55,6 +55,7 @@ EOT
 
         $versionParser = new VersionParser;
 
+        $packages = array();
         foreach ($repo->getPackages() as $package) {
             $packages[$package->getName()] = $package;
         }