mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-03 14:07:34 +00:00
Simplify code
This commit is contained in:
@@ -77,10 +77,7 @@ class NameExpression extends AbstractExpression
|
||||
->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)
|
||||
|
||||
Reference in New Issue
Block a user