We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72ea260 commit 5c6b234Copy full SHA for 5c6b234
visitor.php
@@ -49,6 +49,18 @@ public function enterNode(Node $node)
49
}
50
51
$this->currentSymbolName = $node->name->name;
52
+
53
+ if ($node instanceof ClassMethod) {
54
+ /** @var \PhpParser\Node\Stmt\Class_ $parent */
55
+ $parent = $this->stack[count($this->stack) - 2];
56
57
+ $this->currentSymbolName = sprintf(
58
+ '%1$s::%2$s',
59
+ $parent->name->name,
60
+ $node->name->name
61
+ );
62
+ }
63
64
$newDocComment = $this->addArrayHashNotation($docComment);
65
66
if ($newDocComment !== null) {
0 commit comments