1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Make sure all written entries are correctly sorted

This commit is contained in:
Brown 2020-09-14 11:00:15 -04:00 committed by Daniil Gentili
parent 376a825161
commit 7b48584d24
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -268,6 +268,9 @@ class ErrorBaseline
$issueNode = $baselineDoc->createElement($issueType);
$issueNode->setAttribute('occurrences', (string)$existingIssueType['o']);
\sort($existingIssueType['s']);
foreach ($existingIssueType['s'] as $selection) {
$codeNode = $baselineDoc->createElement('code');