mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-14 19:36:43 +00:00
made Node constructors coherent
git-svn-id: http://svn.twig-project.org/trunk@89 93ef8e89-cb99-4229-a87c-7fa0fa45744b
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user