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

Also check constants in referenced constant lists

Some constants are extracted from Predefined Constants pages (e.g. https://github.com/php/doc-en/pull/3413), which should alsobe checked when verifying the manual.
This commit is contained in:
Máté Kocsis
2024-05-29 23:50:46 +02:00
parent c7797fc8c0
commit 0242577b33

View File

@@ -5335,7 +5335,9 @@ function replacePredefinedConstants(string $targetDirectory, array $constMap, ar
continue;
}
if (stripos($xml, "<appendix") === false && stripos($xml, "<sect2") === false && stripos($xml, "<chapter") === false) {
if (stripos($xml, "<appendix") === false && stripos($xml, "<sect2") === false &&
stripos($xml, "<chapter") === false && stripos($xml, 'role="constant_list"') === false
) {
continue;
}