mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02: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
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue