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:
parent
460c4a2c3e
commit
5b140bf522
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user