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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user