[DI] fix dumping deprecated service in yaml

This commit is contained in:
Nicolas Grekas 2018-06-25 22:27:26 +02:00
parent d59f210d43
commit 411be25aba

View File

@ -99,7 +99,7 @@ class YamlDumper extends Dumper
}
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()) {