1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 07:57:46 +02:00

fix(em): phpstan

This commit is contained in:
Sami Mazouz
2024-01-12 17:59:59 +01:00
parent 24b7dcb102
commit 4f4977b7a5

View File

@@ -40,7 +40,7 @@ class ConfigureComposerController implements RequestHandlerInterface
protected $composerValidator;
/**
* @var ConfigureComposerValidator
* @var ConfigureAuthValidator
*/
protected $authValidator;
@@ -118,7 +118,7 @@ class ConfigureComposerController implements RequestHandlerInterface
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];
}
}