Skip to content

Commit

Permalink
Add don't traverse for methods and functions
Browse files Browse the repository at this point in the history
phpdocumentor doesn't handle the internals of a method so we don't care
about the internal iterations. Our name resolver only has to resolve FQSEN.
  • Loading branch information
jaapio committed Oct 12, 2018
1 parent c1fe126 commit 87e3801
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ public function enterNode(Node $node): ?int
case Function_::class:
$this->parts->push($node->name . '()');
$node->fqsen = new Fqsen($this->buildName());
break;
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
case ClassMethod::class:
$this->parts->push('::' . $node->name . '()');
$node->fqsen = new Fqsen($this->buildName());
break;
return NodeTraverser::DONT_TRAVERSE_CHILDREN;
case ClassConst::class:
$this->parts->push('::');
break;
Expand Down

0 comments on commit 87e3801

Please sign in to comment.