diff --git a/src/PhpDoc/MethodDoc.php b/src/PhpDoc/MethodDoc.php index 54a35de..922a768 100644 --- a/src/PhpDoc/MethodDoc.php +++ b/src/PhpDoc/MethodDoc.php @@ -162,7 +162,7 @@ class MethodDoc extends GenericDoc */ public function getSignatureAnchor(): string { - $sig = $this->name; + $sig = $this->getSignature(); $sigLink = \strtolower($sig); $sigLink = \preg_replace('/[^\w ]+/', ' ', $sigLink); $sigLink = \preg_replace('/ +/', ' ', $sigLink);