mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
Add class aliases into the classmap of gen_stub.php
Now that we have class aliases (DOMNode -> DOM\Node), it has become important to add them to the class map so that it will be possible to generate class synopses for them.
This commit is contained in:
parent
164995effe
commit
02bca09bc1
@ -5659,6 +5659,10 @@ foreach ($fileInfos as $fileInfo) {
|
||||
|
||||
foreach ($fileInfo->classInfos as $classInfo) {
|
||||
$classMap[$classInfo->name->__toString()] = $classInfo;
|
||||
|
||||
if ($classInfo->alias !== null) {
|
||||
$classMap[$classInfo->alias] = $classInfo;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user