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

Treat more issues as fixable cc @orklah

This commit is contained in:
Matt Brown 2020-10-15 11:41:09 -04:00 committed by Daniil Gentili
parent 460c4a2c3e
commit 5b140bf522
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -225,6 +225,10 @@ class IssueBuffer
if ($reporting_level === Config::REPORT_INFO) {
if ($issue_type === 'TaintedInput' || !self::alreadyEmitted($emitted_key)) {
self::$issues_data[$e->getFilePath()][] = $e->toIssueData(Config::REPORT_INFO);
if ($is_fixable) {
self::addFixableIssue($issue_type);
}
}
return false;
@ -248,10 +252,10 @@ class IssueBuffer
if ($issue_type === 'TaintedInput' || !self::alreadyEmitted($emitted_key)) {
++self::$error_count;
self::$issues_data[$e->getFilePath()][] = $e->toIssueData(Config::REPORT_ERROR);
}
if ($is_fixable) {
self::addFixableIssue($issue_type);
if ($is_fixable) {
self::addFixableIssue($issue_type);
}
}
return true;