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

Merge branch 'PHP-8.3'

- PHP-8.3:
  Align class name detection to the new class synopsis format
This commit is contained in:
Máté Kocsis
2023-09-01 14:18:01 +02:00

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