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:
Máté Kocsis 2023-11-27 22:13:35 +01:00
parent 164995effe
commit 02bca09bc1
No known key found for this signature in database
GPG Key ID: FD055E41728BF310

View File

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