1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-10 00:53:06 +00:00

Fix minimum-stability handling in InitCommand, fixes #1421

This commit is contained in:
Jordi Boggiano 2012-12-15 18:35:32 +01:00
parent 51eca2cdfc
commit 247b02d077

View file

@ -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;