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
No known key found for this signature in database
GPG Key ID: FD055E41728BF310

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