Skip to content

Commit d7d1ce2

Browse files
authored
Merge pull request #838 from Automattic/feature/alwaysreturninfilter-remove-version-toggle
2 parents 2d65008 + 2bdb193 commit d7d1ce2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

WordPressVIPMinimum/Tests/Hooks/AlwaysReturnInFilterUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class tokenizer_bug_test {
185185
add_filter( 'tokenizer_bug', [ $this, 'tokenizer_bug' ] );
186186
}
187187

188-
public function tokenizer_bug( $param ): namespace\Foo {} // Ok (tokenizer bug PHPCS < 3.5.7) / Error in PHPCS >= 3.5.7.
188+
public function tokenizer_bug( $param ): namespace\Foo {} // Error.
189189
}
190190

191191
// Intentional parse error. This has to be the last test in the file!

WordPressVIPMinimum/Tests/Hooks/AlwaysReturnInFilterUnitTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace WordPressVIPMinimum\Tests\Hooks;
99

10-
use PHP_CodeSniffer\Config;
1110
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1211

1312
/**
@@ -31,7 +30,7 @@ public function getErrorList() {
3130
105 => 1,
3231
129 => 1,
3332
163 => 1,
34-
188 => version_compare( Config::VERSION, '3.5.7', '>=' ) ? 1 : 0,
33+
188 => 1,
3534
];
3635
}
3736

0 commit comments

Comments
 (0)