Skip to content

Commit 01613e7

Browse files
committed
Disable unused variables in GlobalScopeTest
They will require that #190 be backported as well
1 parent 94f6a1d commit 01613e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/VariableAnalysisSniff/GlobalScopeTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public function testGlobalScopeWarnings() {
1515
$phpcsFile->process();
1616
$lines = $this->getWarningLineNumbersFromFile($phpcsFile);
1717
$expectedErrors = [
18-
4,
18+
// 4, This should be finding the unused variable but we'll need to backport https://github.com/sirbrillig/phpcs-variable-analysis/pull/190 to 2.x
1919
7,
2020
10,
2121
];
@@ -33,7 +33,7 @@ public function testGlobalScopeWarningsWithAllowUndefinedVariablesInFileScope()
3333
$phpcsFile->process();
3434
$lines = $this->getWarningLineNumbersFromFile($phpcsFile);
3535
$expectedErrors = [
36-
4,
36+
// 4, This should be finding the unused variable but we'll need to backport https://github.com/sirbrillig/phpcs-variable-analysis/pull/190 to 2.x
3737
10,
3838
];
3939
$this->assertEquals($expectedErrors, $lines);

0 commit comments

Comments
 (0)