From 247b02d077d2eb14e527365eef943f5b1c65412e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sat, 15 Dec 2012 18:35:32 +0100 Subject: [PATCH] Fix minimum-stability handling in InitCommand, fixes #1421 --- src/Composer/Command/InitCommand.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 652eba1d8..2a7132fa5 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -89,6 +89,11 @@ EOT unset($options['author']); } + if (isset($options['stability'])) { + $options['minimum-stability'] = $options['stability']; + unset($options['stability']); + } + $options['require'] = isset($options['require']) ? $this->formatRequirements($options['require']) : new \stdClass; if (array() === $options['require']) { $options['require'] = new \stdClass;