Skip to content

Commit

Permalink
Fix #575: Remove deprecation notices with string interpolation
Browse files Browse the repository at this point in the history
Resolve pull request #576
  • Loading branch information
HenkerX64 committed Mar 27, 2023
1 parent 9250ed8 commit 1a0aefc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DependencyInjection/JMSTranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function load(array $configs, ContainerBuilder $container)
$container->setParameter('jms_translation.locales', $config['locales']);

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

$requests = [];
Expand Down
4 changes: 2 additions & 2 deletions Tests/Twig/RemovingNodeVisitorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public function testRemovalWithSimpleTemplate(): void

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

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

$this->assertEquals($expected, $actual);
}
Expand Down

0 comments on commit 1a0aefc

Please sign in to comment.