diff --git a/src/Block/Element/AbstractBlock.php b/src/Block/Element/AbstractBlock.php index 85669571fb..2bf864584f 100644 --- a/src/Block/Element/AbstractBlock.php +++ b/src/Block/Element/AbstractBlock.php @@ -78,9 +78,9 @@ public function parent() } /** - * @param Node $node + * @param Node|null $node */ - protected function setParent(Node $node) + protected function setParent(Node $node = null) { if ($node && !$node instanceof self) { throw new \InvalidArgumentException('Parent of block must also be block (can not be inline)');