Skip to content

Commit

Permalink
bug #3264 Optimize context access on PHP 7.4 (rob006)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.x branch.

Discussion
----------

Optimize context access on PHP 7.4

`700400` means PHP 70.4

refs #2985

Commits
-------

e3c20d3 Fix optimize context access on PHP 7.4
  • Loading branch information
fabpot committed Feb 12, 2020
2 parents 56656f0 + e3c20d3 commit 10319b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/Expression/NameExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function compile(Compiler $compiler)
if ($this->getAttribute('is_defined_test')) {
if ($this->isSpecial()) {
$compiler->repr(true);
} elseif (\PHP_VERSION_ID >= 700400) {
} elseif (\PHP_VERSION_ID >= 70400) {
$compiler
->raw('array_key_exists(')
->string($name)
Expand Down

0 comments on commit 10319b4

Please sign in to comment.