Fix COMPOSER_NO_DEV to work with --update-no-dev for require/remove commands as well, refs #10995
parent
1f0bd51f55
commit
6457a88aa1
|
@ -165,6 +165,11 @@ abstract class BaseCommand extends Command
|
|||
$input->setOption('no-dev', true);
|
||||
}
|
||||
}
|
||||
if (true == $input->hasOption('update-no-dev')) {
|
||||
if (!$input->getOption('update-no-dev') && true == Platform::getEnv('COMPOSER_NO_DEV')) {
|
||||
$input->setOption('update-no-dev', true);
|
||||
}
|
||||
}
|
||||
|
||||
parent::initialize($input, $output);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue