Skip to content

Commit b31cc91

Browse files
authored
Skip enum definitions in checkSectionErrors() (#195)
They don't follow the normal rules.
1 parent 907ad1d commit b31cc91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/qa/section-order.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,8 @@ function checkSectionErrors(string $path): array
178178
$pageHasNoReturnSection = false;
179179
$content = file_get_contents($path);
180180

181-
/* Skip class definitions */
182-
if (preg_match('#<reference xml:id="(.+)" role="class"#', $content)) {
181+
/* Skip class or enum definitions */
182+
if (preg_match('#<reference xml:id="(.+)" role="(class|enum)"#', $content)) {
183183
return [];
184184
}
185185
/* Skip Exception classes definitions */

0 commit comments

Comments
 (0)