diff --git a/src/TextGenerator/TextGenerator.php b/src/TextGenerator/TextGenerator.php index 576bf7a..5507f73 100644 --- a/src/TextGenerator/TextGenerator.php +++ b/src/TextGenerator/TextGenerator.php @@ -163,6 +163,7 @@ public function compile($template) { $this->template = $template; $this->statementsStack = []; + $this->sortedStatementsStack = []; $this->compiledTemplate = $this->parseIndentations($template); $this->compiledTemplate = $this->compileTemplate($this->compiledTemplate);