1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Allow underscores to be ignored by UnusedParam checks

This commit is contained in:
Matt Brown 2018-03-02 11:32:34 -05:00
parent e8b4559a6b
commit 276c1a785d

View File

@ -499,7 +499,7 @@ abstract class FunctionLikeChecker extends SourceChecker implements StatementsSo
continue;
}
if ($var_name === '$_' || (strpos($var_name, '$unused') === 0 && $var_name !== '$unused')) {
if (strpos($var_name, '$_') === 0 || (strpos($var_name, '$unused') === 0 && $var_name !== '$unused')) {
continue;
}