Skip to content

Commit

Permalink
Use type hinting for SVGNodeContainer::addChild
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa committed Oct 6, 2016
1 parent 2f817a9 commit 05f82dd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Nodes/SVGNodeContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,8 @@ public function __construct()
$this->children = array();
}

public function addChild($node)
public function addChild(SVGNode $node)
{
if (!($node instanceof SVGNode)) {
return false;
}

if ($node === $this) {
return false;
}
Expand Down

0 comments on commit 05f82dd

Please sign in to comment.