Skip to content

Commit

Permalink
Fix. Scanner. Arrays concatenation fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed May 27, 2024
1 parent c6cb986 commit 9c3db17
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Modules/Variables.php
Original file line number Diff line number Diff line change
Expand Up @@ -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], '\'\"') . '\'',
Expand Down

0 comments on commit 9c3db17

Please sign in to comment.