diff --git a/src/Node/Expression/NameExpression.php b/src/Node/Expression/NameExpression.php index 322fbc2e08..78ae51f033 100644 --- a/src/Node/Expression/NameExpression.php +++ b/src/Node/Expression/NameExpression.php @@ -77,10 +77,7 @@ public function compile(Compiler $compiler): void ->string($name) ->raw(']) || array_key_exists(') ->string($name) - ->raw(', $context) ?') - ; - $compiler - ->raw(' $context[') + ->raw(', $context) ? $context[') ->string($name) ->raw('] : (function () { throw new RuntimeError(\'Variable ') ->string($name)