From 65bb8d99f44c053684b3b59c98fd1f75a3128241 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 10 Aug 2015 08:34:33 +0100 Subject: [PATCH] Fix global switch regression on config command, fixes #4344 --- src/Composer/Command/ConfigCommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); }