Skip to content

Commit 4ddfa44

Browse files
authored
Merge pull request #330 from PHPCSStandards/feature/composer-raise-phpcs-version
Composer: raise the minimum supported PHPCS version to 3.12.1
2 parents c3c5741 + eeaa1fe commit 4ddfa44

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Minimum Requirements
4646
-------------------------------------------
4747

4848
* PHP 5.4 or higher.
49-
* [PHP_CodeSniffer][phpcs-gh] version **3.8.0** or higher.
49+
* [PHP_CodeSniffer][phpcs-gh] version **3.12.1** or higher.
5050
* [PHPCSUtils][phpcsutils-gh] version **1.0.9** or higher.
5151

5252

Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -150,16 +150,6 @@ public function process(File $phpcsFile, $stackPtr)
150150
}
151151
}
152152

153-
/*
154-
* For "yield from", we should only handle tabs _between_ the keywords (single token),
155-
* not indentation for those situations where the keyword is split in multiple tokens.
156-
*/
157-
if ($tokens[$i]['code'] === \T_YIELD_FROM
158-
&& \preg_match('`^yield.+from$`i', $tokens[$i]['content']) !== 1
159-
) {
160-
continue;
161-
}
162-
163153
$fix = $phpcsFile->addFixableError(
164154
'Spaces must be used for mid-line alignment; tabs are not allowed',
165155
$i,

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"require" : {
2424
"php" : ">=5.4",
25-
"squizlabs/php_codesniffer" : "^3.8.0",
25+
"squizlabs/php_codesniffer" : "^3.12.1",
2626
"phpcsstandards/phpcsutils" : "^1.0.9"
2727
},
2828
"require-dev" : {

0 commit comments

Comments
 (0)