1
0
Fork 0

Fix global switch regression on config command, fixes #4344

pull/4345/head
Jordi Boggiano 2015-08-10 08:34:33 +01:00
parent 5a26b7c102
commit 65bb8d99f4
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ EOT
{
parent::initialize($input, $output);
if ($input->getOption('global') && 'composer.json' !== $input->getOption('file')) {
if ($input->getOption('global') && null !== $input->getOption('file')) {
throw new \RuntimeException('--file and --global can not be combined');
}