Skip to content

Commit

Permalink
Fix Warning in Command MigrateLegacyConfig - Undefined array key "lis…
Browse files Browse the repository at this point in the history
…t" (#872)
  • Loading branch information
blankse authored Jul 31, 2024
1 parent 863b36e commit d0893cd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Command/Configuration/MigrateLegacyConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,14 @@ private function migrateToSettingsStore(string $id, string $scope, array $config
private function migrateConfiguration(string $fileName, string $scope): void
{
$configs = $this->loadLegacyConfigs($fileName);
$configs = $configs['list'];
$configs = $configs['list'] ?? [];
foreach ($configs as $key => $config) {
$id = $config['general']['name'];
$this->migrateToSettingsStore((string)$id, $scope, $config);
}
}

/**
*
*
* @return int|null
*
* @throws \Exception
Expand Down

0 comments on commit d0893cd

Please sign in to comment.