Skip to content

Commit a6daa05

Browse files
committed
Sniff test: adjust two test files to match
This removes two expected errors due to the tokenizer change made in the previous commit. ### `Generic.Arrays.DisallowLongArraySyntax` The code on line 13 is a parse error, so the sniff no longer throwing an error for it should not be our concern. ```php $var = array; ``` ### `Squiz.PHP.CommentedOutCode` The code which triggered the warning on line 35 was a docblock written as a block comment and not really commented out code anyway, so this could be considered a fix for a false positive. ```php /* * The listeners array. * * @var array(PHP_CodeSniffer_Sniff) */ ```
1 parent 964a38c commit a6daa05

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/Standards/Generic/Tests/Arrays/DisallowLongArraySyntaxUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ public function getErrorList($testFile='')
3535
6 => 1,
3636
7 => 1,
3737
12 => 1,
38-
13 => 1,
3938
];
4039
case 'DisallowLongArraySyntaxUnitTest.2.inc':
4140
return [

src/Standards/Squiz/Tests/PHP/CommentedOutCodeUnitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ public function getWarningList($testFile='CommentedOutCodeUnitTest.inc')
4949
8 => 1,
5050
15 => 1,
5151
19 => 1,
52-
35 => 1,
5352
87 => 1,
5453
91 => 1,
5554
97 => 1,

0 commit comments

Comments
 (0)