mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-01 04:57:23 +00:00
fixed compat with NodeInterface
This commit is contained in:
+1
-1
@@ -236,7 +236,7 @@ class Node implements \Twig_NodeInterface
|
||||
{
|
||||
$this->sourceContext = $source;
|
||||
foreach ($this->nodes as $node) {
|
||||
if (null !== $node) {
|
||||
if ($node instanceof Node) {
|
||||
$node->setSourceContext($source);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user