diff --git a/src/Command/Configuration/MigrateLegacyConfig.php b/src/Command/Configuration/MigrateLegacyConfig.php index 4d4d18b8..f547b5b3 100644 --- a/src/Command/Configuration/MigrateLegacyConfig.php +++ b/src/Command/Configuration/MigrateLegacyConfig.php @@ -55,7 +55,7 @@ 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); @@ -63,8 +63,6 @@ private function migrateConfiguration(string $fileName, string $scope): void } /** - * - * * @return int|null * * @throws \Exception