Skip to content

Commit

Permalink
Skip enum definitions in checkSectionErrors() (#195)
Browse files Browse the repository at this point in the history
They don't follow the normal rules.
  • Loading branch information
nielsdos authored Dec 2, 2024
1 parent 907ad1d commit b31cc91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/qa/section-order.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ function checkSectionErrors(string $path): array
$pageHasNoReturnSection = false;
$content = file_get_contents($path);

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

0 comments on commit b31cc91

Please sign in to comment.