From b5897b291d77a37c5541cef1301678f76720d17f Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 3 Sep 2012 09:40:03 +0200 Subject: [PATCH] Fix PHP warning in the show command when using the -s flag --- src/Composer/Command/ShowCommand.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 6be8fdc7c..7451e0a16 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -77,6 +77,7 @@ EOT // show single package or single version if ($input->getArgument('package') || !empty($package)) { + $versions = array(); if (empty($package)) { list($package, $versions) = $this->getPackage($installedRepo, $repos, $input->getArgument('package'), $input->getArgument('version'));