Fix optimize context access on PHP 7.4

This commit is contained in:
Robert Korulczyk
2020-02-11 21:11:57 +01:00
committed by GitHub
parent 56656f0e1c
commit e3c20d39d6
+1 -1
View File
@@ -36,7 +36,7 @@ class NameExpression extends AbstractExpression
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)