diff --git a/src/Parser/Tokens.php b/src/Parser/Tokens.php index e9be4a4..cc1100f 100644 --- a/src/Parser/Tokens.php +++ b/src/Parser/Tokens.php @@ -39,7 +39,7 @@ public function rewind() { } public function add($token) { - if ($token instanceof Tokens) $this->tokens = array_merge($token->tokens); + if ($token instanceof Tokens) $this->tokens = array_merge($this->tokens, $token->tokens); else $this->tokens[] = $token; }