mirror of
https://github.com/php/php-src.git
synced 2024-11-23 09:54:15 +08:00
Align class name detection to the new class synopsis format
This commit is contained in:
parent
7c4bae688b
commit
c5fb8b6a6b
@ -4555,15 +4555,15 @@ function replaceClassSynopses(string $targetDirectory, array $classMap, iterable
|
||||
continue;
|
||||
}
|
||||
|
||||
$firstChild = $classSynopsis->firstElementChild;
|
||||
if ($firstChild === null) {
|
||||
$child = $classSynopsis->firstElementChild;
|
||||
if ($child === null) {
|
||||
continue;
|
||||
}
|
||||
$firstChild = $firstChild->firstElementChild;
|
||||
if ($firstChild === null) {
|
||||
$child = $child->lastElementChild;
|
||||
if ($child === null) {
|
||||
continue;
|
||||
}
|
||||
$className = $firstChild->textContent;
|
||||
$className = $child->textContent;
|
||||
if (!isset($classMap[$className])) {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user