diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ste/VariableNode.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/VariableNode.php b/src/ste/VariableNode.php index 9a4ced8..9752d28 100644 --- a/src/ste/VariableNode.php +++ b/src/ste/VariableNode.php @@ -22,7 +22,7 @@ class VariableNode extends ASTNode && ($af[0] instanceof TextNode) && is_numeric($af[0]->text) ) { - $varaccess .= '[' . $af->text . ']'; + $varaccess .= '[' . $af[0]->text . ']'; } else { $varaccess .= '[' . implode(".", array_map(function ($node) { if ($node instanceof TextNode) { |