Skip to content

Commit 90bb654

Browse files
Merge branch '4.0' into 4.1
* 4.0: Bump ext-mongodb to 1.5 on Travis Redesign the Debug error page in prod [DI] fix dumping deprecated service in yaml bumped Symfony version to 4.0.13 updated VERSION for 4.0.12 updated CHANGELOG for 4.0.12 bumped Symfony version to 3.4.13 updated VERSION for 3.4.12 updated CHANGELOG for 3.4.12 bumped Symfony version to 2.8.43 updated VERSION for 2.8.42 update CONTRIBUTORS for 2.8.42 updated CHANGELOG for 2.8.42
2 parents e761828 + b8ad455 commit 90bb654

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dumper/YamlDumper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private function addService(string $id, Definition $definition): string
9494
}
9595

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

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

Tests/Fixtures/config/prototype.expected.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
tags:
1111
- { name: foo }
1212
- { name: baz }
13-
deprecated: %service_id%
13+
deprecated: '%service_id%'
1414
arguments: [1]
1515
factory: f
1616
Symfony\Component\DependencyInjection\Tests\Fixtures\Prototype\Sub\Bar:
@@ -19,7 +19,7 @@ services:
1919
tags:
2020
- { name: foo }
2121
- { name: baz }
22-
deprecated: %service_id%
22+
deprecated: '%service_id%'
2323
lazy: true
2424
arguments: [1]
2525
factory: f

0 commit comments

Comments
 (0)