diff --git a/monorepo/DevTools/src/RefactorConfigCommand.php b/monorepo/DevTools/src/RefactorConfigCommand.php index f452648fce7..d4d7a7ca64c 100644 --- a/monorepo/DevTools/src/RefactorConfigCommand.php +++ b/monorepo/DevTools/src/RefactorConfigCommand.php @@ -75,6 +75,11 @@ protected function migrateToYaml(): void $yaml = Yaml::dump($config, 16, 4, Yaml::DUMP_MULTI_LINE_LITERAL_BLOCK | Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE); + if ($yaml === '[]') { + $this->warn("You don't seem to have any configuration to migrate."); + return; + } + file_put_contents(Hyde::path('hyde.yml'), $yaml); }