From c5fb8b6a6b9d23babcf4a7e2c2e838ad87301c34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Fri, 1 Sep 2023 14:15:36 +0200 Subject: [PATCH] Align class name detection to the new class synopsis format --- build/gen_stub.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/build/gen_stub.php b/build/gen_stub.php index 19e79c79420..9fc26052c86 100755 --- a/build/gen_stub.php +++ b/build/gen_stub.php @@ -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; }