diff --git a/lib/Twig/Node/Set.php b/lib/Twig/Node/Set.php index 767f56722..144f315c5 100644 --- a/lib/Twig/Node/Set.php +++ b/lib/Twig/Node/Set.php @@ -1,6 +1,6 @@ isMultitarget) + { + return $this->values; + } + else + { + return array($this->values); + } + } + + public function setNodes(array $nodes) + { + $this->values = $this->isMultitarget ? $nodes : $nodes[0]; + } + public function compile($compiler) { $compiler->addDebugInfo($this);