mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Allow TaintedInput to suppress all emitted issues
This commit is contained in:
parent
db566c7c4d
commit
5f6c6a1215
@ -1521,6 +1521,10 @@ class Config
|
||||
return $stripped_issue_type;
|
||||
}
|
||||
|
||||
if (strpos($issue_type, 'Tainted') === 0) {
|
||||
return 'TaintedInput';
|
||||
}
|
||||
|
||||
if (preg_match('/^(False|Null)[A-Z]/', $issue_type) && !strpos($issue_type, 'Reference')) {
|
||||
return preg_replace('/^(False|Null)/', 'Invalid', $issue_type);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user