mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-31 12:37:15 +00:00
synchronize sourceContext
This commit is contained in:
committed by
Fabien Potencier
parent
861c76cb00
commit
350670a321
@@ -138,6 +138,9 @@ class Node implements \Countable, \IteratorAggregate
|
||||
|
||||
public function setNode(string $name, self $node): void
|
||||
{
|
||||
if (null !== $this->sourceContext) {
|
||||
$node->setSourceContext($this->sourceContext);
|
||||
}
|
||||
$this->nodes[$name] = $node;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user