1
0
Fork 0

Fix minimum-stability handling in InitCommand, fixes #1421

pull/1424/head
Jordi Boggiano 2012-12-15 18:35:32 +01:00
parent 51eca2cdfc
commit 247b02d077
1 changed files with 5 additions and 0 deletions

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;