From ef2b925938faddd76008dfb41ed3b1decf7e92a2 Mon Sep 17 00:00:00 2001 From: John Rayes Date: Thu, 15 Oct 2026 19:07:15 -0700 Subject: [PATCH] update fixer priority --- .github/phpcs/SectionComments.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/phpcs/SectionComments.php b/.github/phpcs/SectionComments.php index a16d89b946a..b5126475554 100644 --- a/.github/phpcs/SectionComments.php +++ b/.github/phpcs/SectionComments.php @@ -192,9 +192,22 @@ private static function method6(): void {} ); } + /** + * Returns the priority of the fixer. + * + * The default priority is 0 and higher priorities are executed first. + * + * Must run before IndentationTypeFixer, NoExtraBlankLinesFixer. + * Must run after ClassAttributesSeparationFixer, OrderedClassElementsFixer. + * + * - IndentationTypeFixer::getPriority() => 50 + * - NoExtraBlankLinesFixer::getPriority() => -20 + * - ClassAttributesSeparationFixer::getPriority() => 55 + * - OrderedClassElementsFixer::getPriority() => 65 + */ public function getPriority(): int { - return -110; + return 54; } public function isCandidate(Tokens $tokens): bool