Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions build/gen_stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -6138,6 +6138,11 @@ function replaceMethodSynopses(
continue;
}

// Only function and method pages are regenerated
if ($doc->documentElement->nodeName !== "refentry") {
continue;
}

$methodSynopsisElements = [];
foreach ($doc->getElementsByTagName("constructorsynopsis") as $element) {
$methodSynopsisElements[] = $element;
Expand Down Expand Up @@ -6166,6 +6171,11 @@ function replaceMethodSynopses(
$funcInfo = $funcMap[$funcName];
$documentedFuncMap[$funcInfo->name->__toString()] = $funcInfo->name->__toString();

// Hand-maintained synopses are never regenerated
if ($methodSynopsis->getAttribute("condition") === "stub-override") {
continue;
}

$newMethodSynopsis = $funcInfo->getMethodSynopsisElement($doc);
if ($newMethodSynopsis === null) {
continue;
Expand Down
Loading