8000 bug #27716 [DI] fix dumping deprecated service in yaml (nicolas-grekas) · symfony/symfony@1371b8f · GitHub
[go: up one dir, main page]

Skip to content

Commit 1371b8f

8000 Browse files
bug #27716 [DI] fix dumping deprecated service in yaml (nicolas-grekas)
This PR was merged into the 2.8 branch. Discussion ---------- [DI] fix dumping deprecated service in yaml | Q | A | ------------- | --- | Branch? | 2.8 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 411be25 [DI] fix dumping deprecated service in yaml
2 parents d59f210 + 411be25 commit 1371b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/DependencyInjection/Dumper/YamlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private function addService($id, Definition $definition)
9999
}
100100

101101
if ($definition->isDeprecated()) {
102-
$code .= sprintf(" deprecated: %s\n", $definition->getDeprecationMessage('%service_id%'));
102+
$code .= sprintf(" deprecated: %s\n", $this->dumper->dump($definition->getDeprecationMessage('%service_id%')));
103103
}
104104

105105
if ($definition->isAutowired()) {

0 commit comments

Comments
 (0)
0