mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Use slightly cleaner way of sorting file issues
This commit is contained in:
parent
05f8cfac65
commit
c2f1b3b700
@ -424,7 +424,7 @@ class IssueBuffer
|
||||
if (self::$issues_data) {
|
||||
\ksort(self::$issues_data);
|
||||
|
||||
foreach (self::$issues_data as &$file_issues) {
|
||||
foreach (self::$issues_data as $file_path => $file_issues) {
|
||||
usort(
|
||||
$file_issues,
|
||||
/**
|
||||
@ -447,7 +447,7 @@ class IssueBuffer
|
||||
return $d1['file_path'] > $d2['file_path'] ? 1 : -1;
|
||||
}
|
||||
);
|
||||
unset($file_issues);
|
||||
self::$issues_data[$file_path] = $file_issues;
|
||||
}
|
||||
|
||||
if (!empty($issue_baseline)) {
|
||||
|
Loading…
Reference in New Issue
Block a user