Skip to content

Commit

Permalink
Fix broken method override
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Nov 4, 2015
1 parent b330408 commit 3eb6485
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Block/Element/AbstractBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)');
Expand Down

0 comments on commit 3eb6485

Please sign in to comment.