1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Fix calculation when sample has a newline

This commit is contained in:
Brown 2018-11-09 11:38:40 -05:00
parent b7099aaf3f
commit ecf9d8afd7

View File

@ -368,6 +368,7 @@ class IssueBuffer
$issue_baseline[$file][$type]['o'] = $issue_baseline[$file][$type]['o'] - 1;
}
} else {
$issue_baseline[$file][$type]['s'] = [];
$issue_data['severity'] = Config::REPORT_INFO;
$issue_baseline[$file][$type]['o'] = $issue_baseline[$file][$type]['o'] - 1;
}