Skip to content

Commit 4f4977b

Browse files
committed
fix(em): phpstan
1 parent 24b7dcb commit 4f4977b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/package-manager/src/Api/Controller/ConfigureComposerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ConfigureComposerController implements RequestHandlerInterface
4040
protected $composerValidator;
4141

4242
/**
43-
* @var ConfigureComposerValidator
43+
* @var ConfigureAuthValidator
4444
*/
4545
protected $authValidator;
4646

@@ -118,7 +118,7 @@ protected function composerConfig(ServerRequestInterface $request): array
118118
foreach ($this->configurable as $key) {
119119
$composerJson[$key] = Arr::get($composerJson, $key, Arr::get($default, $key));
120120

121-
if (is_null($composerJson[$key]) && ! is_null($default[$key])) {
121+
if (is_null($composerJson[$key])) {
122122
$composerJson[$key] = $default[$key];
123123
}
124124
}

0 commit comments

Comments
 (0)