diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 5feb9f1cb..6c12a7a72 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -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'); }