Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Nov 17, 2024
1 parent 065a45f commit 41a7988
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Node/Expression/NameExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41a7988

Please sign in to comment.