diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index eb7a3ff1f..6e457dd78 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -576,6 +576,9 @@ EOT return $this->configSource->addConfigSetting($settingKey, $values[0]); } + if ($settingKey === 'platform' && $input->getOption('unset')) { + return $this->configSource->removeConfigSetting($settingKey); + } // handle auth if (preg_match('/^(bitbucket-oauth|github-oauth|gitlab-oauth|gitlab-token|http-basic)\.(.+)/', $settingKey, $matches)) {