diff --git a/README.md b/README.md index c617f8e..49a2120 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Minimum Requirements ------------------------------------------- * PHP 5.4 or higher. -* [PHP_CodeSniffer][phpcs-gh] version **3.8.0** or higher. +* [PHP_CodeSniffer][phpcs-gh] version **3.12.1** or higher. * [PHPCSUtils][phpcsutils-gh] version **1.0.9** or higher. diff --git a/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php b/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php index 77d15d0..c94934f 100644 --- a/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php +++ b/Universal/Sniffs/WhiteSpace/DisallowInlineTabsSniff.php @@ -150,16 +150,6 @@ public function process(File $phpcsFile, $stackPtr) } } - /* - * For "yield from", we should only handle tabs _between_ the keywords (single token), - * not indentation for those situations where the keyword is split in multiple tokens. - */ - if ($tokens[$i]['code'] === \T_YIELD_FROM - && \preg_match('`^yield.+from$`i', $tokens[$i]['content']) !== 1 - ) { - continue; - } - $fix = $phpcsFile->addFixableError( 'Spaces must be used for mid-line alignment; tabs are not allowed', $i, diff --git a/composer.json b/composer.json index 28617b0..b565df6 100644 --- a/composer.json +++ b/composer.json @@ -22,7 +22,7 @@ }, "require" : { "php" : ">=5.4", - "squizlabs/php_codesniffer" : "^3.8.0", + "squizlabs/php_codesniffer" : "^3.12.1", "phpcsstandards/phpcsutils" : "^1.0.9" }, "require-dev" : {