From 148f08f6482fa05ed032feae4551abc1df36486e Mon Sep 17 00:00:00 2001 From: Tom Butler Date: Thu, 12 Jul 2018 16:33:24 +0100 Subject: [PATCH] #200 - fix direct decendent operator --- src/Parser/Tokens.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }