diff --git a/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php b/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php index 3244abcbb7..79f5fa6770 100755 --- a/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php +++ b/extensions/package-manager/src/Api/Controller/ConfigureComposerController.php @@ -40,7 +40,7 @@ class ConfigureComposerController implements RequestHandlerInterface protected $composerValidator; /** - * @var ConfigureComposerValidator + * @var ConfigureAuthValidator */ protected $authValidator; @@ -118,7 +118,7 @@ protected function composerConfig(ServerRequestInterface $request): array foreach ($this->configurable as $key) { $composerJson[$key] = Arr::get($composerJson, $key, Arr::get($default, $key)); - if (is_null($composerJson[$key]) && ! is_null($default[$key])) { + if (is_null($composerJson[$key])) { $composerJson[$key] = $default[$key]; } }