Skip to content

Commit

Permalink
Make sure all written entries are correctly sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Sep 14, 2020
1 parent 7e53865 commit a6622c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Psalm/ErrorBaseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,9 @@ function (string $extension) : string {
$issueNode = $baselineDoc->createElement($issueType);

$issueNode->setAttribute('occurrences', (string)$existingIssueType['o']);

\sort($existingIssueType['s']);

foreach ($existingIssueType['s'] as $selection) {
$codeNode = $baselineDoc->createElement('code');

Expand Down

0 comments on commit a6622c4

Please sign in to comment.