8000 [TwigBridge] Fix test · enumag/symfony@ad752b1 · GitHub
[go: up one dir, main page]

Skip to content

Commit ad752b1

Browse files
author
Robin Chalas
committed
[TwigBridge] Fix test
1 parent ce7afc2 commit ad752b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Tests/Node/TransNodeTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function getVariableGetterWithoutStrictCheck($name)
5454
protected function getVariableGetterWithStrictCheck($name)
5555
{
5656
if (Environment::MAJOR_VERSION >= 2) {
57-
return sprintf('(isset($context["%1$s"]) || array_key_exists("%1$s", $context) ? $context["%1$s"] : (function () { throw new %2$s(\'Variable "%1$s" does not exist.\', 0, $this->source); })())', $name, Environment::VERSION_ID >= 20700 ? '\Twig\Error\RuntimeError' : 'Twig_Error_Runtime');
57+
return sprintf('(isset($context["%1$s"]) || array_key_exists("%1$s", $context) ? $context["%1$s"] : (function () { throw new %2$s(\'Variable "%1$s" does not exist.\', 0, $this->source); })())', $name, Environment::VERSION_ID >= 20700 ? 'RuntimeError' : 'Twig_Error_Runtime');
5858
}
5959

6060
if (\PHP_VERSION_ID >= 70000) {

0 commit comments

Comments
 (0)
0