made Node constructors coherent
authorfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Thu, 22 Oct 2009 01:47:20 +0000 (01:47 +0000)
committerfabien <fabien@93ef8e89-cb99-4229-a87c-7fa0fa45744b>
Thu, 22 Oct 2009 01:47:20 +0000 (01:47 +0000)
git-svn-id: http://svn.twig-project.org/trunk@89 93ef8e89-cb99-4229-a87c-7fa0fa45744b

lib/Twig/Node/Print.php
lib/Twig/Node/Set.php

index ed34f01..df4a6ae 100644 (file)
@@ -21,9 +21,9 @@ class Twig_Node_Print extends Twig_Node implements Twig_NodeListInterface
 {
   protected $expr;
 
-  public function __construct(Twig_Node_Expression $expr, $lineno)
+  public function __construct(Twig_Node_Expression $expr, $lineno, $tag = null)
   {
-    parent::__construct($lineno);
+    parent::__construct($lineno, $tag);
     $this->expr = $expr;
   }
 
index b91e476..6e3503b 100644 (file)
@@ -6,9 +6,9 @@ class Twig_Node_Set extends Twig_Node
   protected $value;
   protected $isMultitarget;
 
-  public function __construct($isMultitarget, $names, Twig_Node_Expression $value, $lineno)
+  public function __construct($isMultitarget, $names, Twig_Node_Expression $value, $lineno, $tag = null)
   {
-    parent::__construct($lineno);
+    parent::__construct($lineno, $tag);
 
     $this->isMultitarget = $isMultitarget;
     $this->names = $names;