1
0
Fork 0

Fixing error when no requirements are defined

pull/286/head
Justin Rainbow 2012-01-08 13:37:01 -07:00
parent 42d55bf510
commit 6ff7694de1
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ EOT
$options = array_filter(array_intersect_key($input->getOptions(), array_flip(array('name','description','require'))));
$options['require'] = $this->formatRequirements($options['require']);
$options['require'] = $this->formatRequirements(isset($options['require']) ? $options['require'] : array());
$file = new JsonFile('composer.json');