1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Align class name detection to the new class synopsis format

This commit is contained in:
Máté Kocsis
2023-09-01 14:15:36 +02:00
parent 7c4bae688b
commit c5fb8b6a6b

View File

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