We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cceb66 commit d06bc07Copy full SHA for d06bc07
Tests/Node/TransNodeTest.php
@@ -54,7 +54,7 @@ protected function getVariableGetterWithoutStrictCheck($name)
54
protected function getVariableGetterWithStrictCheck($name)
55
{
56
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');
+ 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');
58
}
59
60
if (\PHP_VERSION_ID >= 70000) {
0 commit comments