Skip to content

Commit

Permalink
Fix #3461 by removing file from issues after removing last issue (#3462)
Browse files Browse the repository at this point in the history
  • Loading branch information
still-dreaming-1 authored May 27, 2020
1 parent b4855b3 commit 700b5dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Psalm/IssueBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ public static function remove(string $file_path, string $issue_type, int $file_o
}
}

self::$issues_data[$file_path] = $filtered_issues;
if (empty($filtered_issues)) {
unset(self::$issues_data[$file_path]);
} else {
self::$issues_data[$file_path] = $filtered_issues;
}
}

public static function addFixableIssue(string $issue_type) : void
Expand Down

0 comments on commit 700b5dd

Please sign in to comment.