mirror of
https://github.com/flarum/core.git
synced 2025-08-04 23:47:32 +02:00
fix(em): phpstan
This commit is contained in:
@@ -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];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user