Skip to content

Commit

Permalink
fix: alter_yaml_file respects empty arrays in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Apr 11, 2023
1 parent 9c1e37e commit 10d8540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaffolder/Callbacks/AlterYamlFileCallback.php
Expand Up @@ -49,7 +49,7 @@ function ($file_name) use ($context) {
function ($file_name, $data) use ($context) {
$context->getShell()->putFileContents(
$file_name,
Yaml::dump($data, 10, 2),
Yaml::dump($data, 10, 2, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE),
$context
);
}
Expand Down

0 comments on commit 10d8540

Please sign in to comment.