mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 10:38:49 +01:00
Allow TaintedInput to suppress all emitted issues
This commit is contained in:
parent
74749d20cc
commit
854a5b2ec5
@ -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