Skip to content

Commit

Permalink
Merge pull request #577 from HenkerX64/fix-issue-575
Browse files Browse the repository at this point in the history
Fix #575: Remove deprecation notices with string interpolation
  • Loading branch information
goetas authored Mar 27, 2023
2 parents 9250ed8 + 1a0aefc commit 42655d8
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 42655d8

Please sign in to comment.