We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90d7331 commit a96ac00Copy full SHA for a96ac00
SlevomatCodingStandard/Sniffs/Commenting/DocCommentSpacingSniff.php
@@ -616,7 +616,7 @@ private function sortAnnotationsToGroups(array $annotations): array
616
}
617
};
618
619
- return $getExpectedOrder($firstAnnotation->getName()) <=> $getExpectedOrder($secondAnnotation->getName());
+ return $getExpectedOrder($firstAnnotation->getName()) <=> $getExpectedOrder($secondAnnotation->getName()) ?: $firstAnnotation->getStartPointer() <=> $secondAnnotation->getStartPointer();
620
});
621
622
0 commit comments