Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nicolas-grekas committed Jun 26, 2018
2 parents d59f210 + 411be25 commit 1371b8f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -99,7 +99,7 @@ private function addService($id, Definition $definition)
}

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

if ($definition->isAutowired()) {
Expand Down

0 comments on commit 1371b8f

Please sign in to comment.