From 9c3db171d3ba5e5033ada46499205fdd014eea81 Mon Sep 17 00:00:00 2001 From: Glomberg Date: Mon, 27 May 2024 13:47:34 +0300 Subject: [PATCH] Fix. Scanner. Arrays concatenation fixed. --- Modules/Variables.php | 4 ++++ 1 file changed, 4 insertions(+) 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], '\'\"') . '\'',