Skip to content

Commit

Permalink
Backport #69 to 4.x
Browse files Browse the repository at this point in the history
  • Loading branch information
WyriHaximus committed Oct 21, 2017
1 parent 558dace commit 1f82a27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Lib/Twig/Node/Cell.php
Expand Up @@ -46,6 +46,14 @@ public function __construct(
$lineno = '',
$tag = null
) {
if ($data === null) {
$data = new \Twig_Node_Expression_Array([], $lineno);
}

if ($options === null) {
$options = new \Twig_Node_Expression_Array([], $lineno);
}

parent::__construct(
[
'name' => $name,
Expand Down
8 changes: 8 additions & 0 deletions src/Lib/Twig/Node/Element.php
Expand Up @@ -32,6 +32,14 @@ public function __construct(
$lineno = '',
$tag = null
) {
if ($data === null) {
$data = new \Twig_Node_Expression_Array([], $lineno);
}

if ($options === null) {
$options = new \Twig_Node_Expression_Array([], $lineno);
}

parent::__construct(
[
'name' => $name,
Expand Down

0 comments on commit 1f82a27

Please sign in to comment.