diff --git a/Modules/Variables.php b/Modules/Variables.php index 4008c3d..0466c82 100644 --- a/Modules/Variables.php +++ b/Modules/Variables.php @@ -509,6 +509,10 @@ public function replaceArrayVars($_key) $this->tokens->searchForward($this->tokens[$var_first_declaration][3], ';') - 1 ); + if ( ! isset($var_expression[2][1][$this->tokens->next2->value + 1]) ) { + return; + } + $this->tokens['current'] = new Token( 'T_CONSTANT_ENCAPSED_STRING', '\'' . trim($var_expression[2][1][$this->tokens->next2->value + 1], '\'\"') . '\'',