mirror of
https://github.com/danog/phpdoc.git
synced 2024-11-29 20:19:03 +01:00
Improvements
This commit is contained in:
parent
1ac05c37d8
commit
3e6bf3b50f
@ -443,6 +443,10 @@ class PhpDoc
|
||||
$this->useMap[$class][$alias] = $import;
|
||||
$this->useMap[$class]['\\'.$alias] = $import;
|
||||
}
|
||||
|
||||
if ($reflectionClass instanceof ReflectionClass) {
|
||||
array_map($this->addTypeAliases(...), $reflectionClass->getTraitNames());
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Create directory recursively.
|
||||
|
@ -162,7 +162,7 @@ class MethodDoc extends GenericDoc
|
||||
*/
|
||||
public function getSignatureAnchor(): string
|
||||
{
|
||||
$sig = $this->getSignature();
|
||||
$sig = $this->name;
|
||||
$sigLink = \strtolower($sig);
|
||||
$sigLink = \preg_replace('/[^\w ]+/', ' ', $sigLink);
|
||||
$sigLink = \preg_replace('/ +/', ' ', $sigLink);
|
||||
|
Loading…
Reference in New Issue
Block a user