1
0
Fork 0

Sort conditions by cost

pull/9165/head
username 2020-08-29 21:20:30 +02:00
parent 98462292c0
commit 113adbcd87
1 changed files with 1 additions and 1 deletions

View File

@ -568,7 +568,7 @@ EOT
if ($input->getOption('global') && (isset($uniqueProps[$settingKey]) || isset($multiProps[$settingKey]) || substr($settingKey, 0, 6) === 'extra.')) {
throw new \InvalidArgumentException('The '.$settingKey.' property can not be set in the global config.json file. Use `composer global config` to apply changes to the global composer.json');
}
if ($input->getOption('unset') && (isset($uniqueProps[$settingKey]) || isset($multiProps[$settingKey]))) {
if ((isset($uniqueProps[$settingKey]) || isset($multiProps[$settingKey])) && $input->getOption('unset')) {
$this->configSource->removeProperty($settingKey);
return 0;