synchronize sourceContext

This commit is contained in:
Daniel Penning
2024-04-24 17:30:04 +02:00
committed by Fabien Potencier
parent 861c76cb00
commit 350670a321
+3
View File
@@ -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;
}