1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01: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:
Máté Kocsis
2023-11-27 22:13:35 +01:00
parent 164995effe
commit 02bca09bc1

View File

@@ -5659,6 +5659,10 @@ foreach ($fileInfos as $fileInfo) {
foreach ($fileInfo->classInfos as $classInfo) { foreach ($fileInfo->classInfos as $classInfo) {
$classMap[$classInfo->name->__toString()] = $classInfo; $classMap[$classInfo->name->__toString()] = $classInfo;
if ($classInfo->alias !== null) {
$classMap[$classInfo->alias] = $classInfo;
}
} }
} }