Skip to content

Commit d5ecfd2

Browse files
committed
Make scripts/qa/section-order.php support new class reference syntax
This fixes the CI failure.
1 parent a046d19 commit d5ecfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/qa/section-order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ function checkSectionErrors(string $path): array
177177
$content = file_get_contents($path);
178178

179179
/* Skip class definitions */
180-
if (str_contains($content, '<phpdoc:classref')) {
180+
if (preg_match('#<reference xml:id="(.+)" role="class"#', $content)) {
181181
return [];
182182
}
183183
/* Skip Exception classes definitions */

0 commit comments

Comments
 (0)