Skip to content

Commit 0242577

Browse files
committed
Also check constants in referenced constant lists
Some constants are extracted from Predefined Constants pages (e.g. php/doc-en#3413), which should alsobe checked when verifying the manual.
1 parent c7797fc commit 0242577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/gen_stub.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5335,7 +5335,9 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar
53355335
continue;
53365336
}
53375337

5338-
if (stripos($xml, "<appendix") === false && stripos($xml, "<sect2") === false && stripos($xml, "<chapter") === false) {
5338+
if (stripos($xml, "<appendix") === false && stripos($xml, "<sect2") === false &&
5339+
stripos($xml, "<chapter") === false && stripos($xml, 'role="constant_list"') === false
5340+
) {
53395341
continue;
53405342
}
53415343

0 commit comments

Comments
 (0)