From a5c6319d468723aa26b070cf61e5c42e97024c19 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 31 Dec 2013 15:16:36 +0100 Subject: [PATCH] Fix uninitialized var, fixes #2539 --- src/Composer/Command/LicensesCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index 861b889a0..5d05ef74f 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/src/Composer/Command/LicensesCommand.php @@ -55,6 +55,7 @@ EOT $versionParser = new VersionParser; + $packages = array(); foreach ($repo->getPackages() as $package) { $packages[$package->getName()] = $package; }