Skip to content

Commit 02bca09

Browse files
committed
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.
1 parent 164995e commit 02bca09

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build/gen_stub.php

+4
Original file line numberDiff line numberDiff line change
@@ -5659,6 +5659,10 @@ function initPhpParser() {
56595659

56605660
foreach ($fileInfo->classInfos as $classInfo) {
56615661
$classMap[$classInfo->name->__toString()] = $classInfo;
5662+
5663+
if ($classInfo->alias !== null) {
5664+
$classMap[$classInfo->alias] = $classInfo;
5665+
}
56625666
}
56635667
}
56645668

0 commit comments

Comments
 (0)