1
0
mirror of https://github.com/danog/phpdoc.git synced 2024-11-29 20:19:03 +01:00
This commit is contained in:
Daniil Gentili 2023-09-13 12:41:45 +02:00
parent 3e6bf3b50f
commit 9112c1537f
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -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);