Skip to content

Commit af7db0b

Browse files
committed
UnusedParameterSniff: More tests
1 parent d51e931 commit af7db0b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/Sniffs/Functions/data/unusedParameterNoErrors.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,27 @@ function noParameter()
88
/**
99
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter
1010
*/
11-
function wholeSniffSupress($a)
11+
function wholeSniffSuppress($a)
1212
{
1313

1414
}
1515

1616
/**
1717
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter.UnusedParameter
1818
*/
19-
function codeSupress($a)
19+
function codeSuppress($a)
2020
{
2121

2222
}
2323

24+
/**
25+
* @phpcsSuppress SlevomatCodingStandard.Functions.UnusedParameter
26+
*/
27+
function ($closureSuppress)
28+
{
29+
30+
};
31+
2432
function usedParameter($a)
2533
{
2634
echo $a;

0 commit comments

Comments
 (0)