Skip to content

Commit

Permalink
refactor: add return typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
adhocore committed Dec 23, 2019
1 parent 1cbb125 commit 82644f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function parse(Token $token): Node
return $this->traverse($body);
}

protected function traverse(Node $node)
protected function traverse(Node $node): Node
{
if ($node instanceof TextNode) {
$node->setAttribute('data', $this->doLazyload($node->getAttribute('data')));
Expand Down

0 comments on commit 82644f1

Please sign in to comment.