From: fabien Date: Thu, 22 Oct 2009 01:47:20 +0000 (+0000) Subject: made Node constructors coherent X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=e04739bbc312a2ce67fe500b23bc02ee378bf325;p=web%2Fkonrad%2Ftwig.git made Node constructors coherent git-svn-id: http://svn.twig-project.org/trunk@89 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Node/Print.php b/lib/Twig/Node/Print.php index ed34f01..df4a6ae 100644 --- a/lib/Twig/Node/Print.php +++ b/lib/Twig/Node/Print.php @@ -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; } diff --git a/lib/Twig/Node/Set.php b/lib/Twig/Node/Set.php index b91e476..6e3503b 100644 --- a/lib/Twig/Node/Set.php +++ b/lib/Twig/Node/Set.php @@ -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;