Skip to content

Commit ba92b87

Browse files
committed
[DI] Fix missing new line after private alias
1 parent ace973b commit ba92b87

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dumper/YamlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private function addServiceAlias($alias, $id)
165165
return sprintf(" %s: '@%s'\n", $alias, $id);
166166
}
167167

168-
return sprintf(" %s:\n alias: %s\n public: false", $alias, $id);
168+
return sprintf(" %s:\n alias: %s\n public: false\n", $alias, $id);
169169
}
170170

171171
/**

Tests/Fixtures/yaml/services6.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ services:
2323
another_alias_for_foo:
2424
alias: foo
2525
public: false
26+
another_third_alias_for_foo:
27+
alias: foo
2628
decorator_service:
2729
decorates: decorated
2830
decorator_service_with_name:

0 commit comments

Comments
 (0)