Skip to content

Commit 42655d8

Browse files
authored
Merge pull request #577 from HenkerX64/fix-issue-575
Fix #575: Remove deprecation notices with string interpolation
2 parents 9250ed8 + 1a0aefc commit 42655d8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

DependencyInjection/JMSTranslationExtension.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function load(array $configs, ContainerBuilder $container)
4141
$container->setParameter('jms_translation.locales', $config['locales']);
4242

4343
foreach ($config['dumper'] as $option => $value) {
44-
$container->setParameter("jms_translation.dumper.${option}", $value);
44+
$container->setParameter('jms_translation.dumper.' . $option, $value);
4545
}
4646

4747
$requests = [];

Tests/Twig/RemovingNodeVisitorTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public function testRemovalWithSimpleTemplate(): void
3030

3131
$templateSuffix = $isSF5 ? '_sf5' : '';
3232

33-
$expected = $this->parse("simple_template_compiled${templateSuffix}.html.twig");
34-
$actual = $this->parse("simple_template${templateSuffix}.html.twig");
33+
$expected = $this->parse('simple_template_compiled' . $templateSuffix . '.html.twig');
34+
$actual = $this->parse('simple_template' . $templateSuffix . '.html.twig');
3535

3636
$this->assertEquals($expected, $actual);
3737
}

0 commit comments

Comments
 (0)