@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14141515 <active>yes</active>
1616 </lead>
17- <date>2021-04-09 </date>
18- <time>10:51 :00</time>
17+ <date>2021-10-11 </date>
18+ <time>14:58 :00</time>
1919 <version>
2020 <release>3.6.1</release>
2121 <api>3.6.1</api>
@@ -2263,6 +2263,92 @@ http://pear.php.net/dtd/package-2.0.xsd">
22632263 </filelist>
22642264 </phprelease>
22652265 <changelog>
2266+ <release>
2267+ <version>
2268+ <release>3.6.1</release>
2269+ <api>3.6.1</api>
2270+ </version>
2271+ <stability>
2272+ <release>stable</release>
2273+ <api>stable</api>
2274+ </stability>
2275+ <date>2021-10-11</date>
2276+ <license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD License</license>
2277+ <notes>
2278+ - PHPCS annotations can now be specified using hash-style comments
2279+ -- Previously, only slash-style and block-style comments could be used to do things like disable errors
2280+ -- Thanks to Juliette Reinders Folmer for the patch
2281+ - Fixed an issue where some sniffs would not run on PHP files that only used the short echo tag
2282+ -- The following sniffs were affected:
2283+ --- Generic.Files.ExecutableFile
2284+ --- Generic.Files.LowercasedFilename
2285+ --- Generic.Files.LineEndings
2286+ --- Generic.Files.EndFileNewline
2287+ --- Generic.Files.EndFileNoNewline
2288+ --- Generic.PHP.ClosingPHPTag
2289+ --- Generic.PHP.Syntax
2290+ --- Generic.VersionControl.GitMergeConflict
2291+ --- Generic.WhiteSpace.DisallowSpaceIndent
2292+ --- Generic.WhiteSpace.DisallowTabIndent
2293+ -- Thanks to Juliette Reinders Folmer for the patch
2294+ - The new PHP 8.1 tokenisation for ampersands has been reverted to use the existing PHP_CodeSniffer method
2295+ -- The PHP 8.1 tokens T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG and T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG are unsued
2296+ -- Ampersands continue to be tokenized as T_BITWISE_AND for all PHP versions
2297+ -- Thanks to Juliette Reinders Folmer and Anna Filina for the patch
2298+ - File::getMethodParameters() no longer incorrectly returns argument attributes in the type hint array index
2299+ -- A new has_attributes array index is available and set to TRUE if the argument has attributes defined
2300+ -- Thanks to Juliette Reinders Folmer for the patch
2301+ - Generic.NamingConventions.ConstructorName no longer throws deprecation notices on PHP 8.1
2302+ -- Thanks to Juliette Reinders Folmer for the patch
2303+ - Squiz.Commenting.BlockComment now correctly applies rules for block comments after a short echo tag
2304+ -- Thanks to Juliette Reinders Folmer for the patch
2305+ - Fixed false positives when using attributes in the following sniffs:
2306+ -- PEAR.Commenting.FunctionComment
2307+ -- Squiz.Commenting.InlineComment
2308+ -- Squiz.Commenting.BlockComment
2309+ -- Squiz.Commenting.VariableComment
2310+ -- Squiz.WhiteSpace.MemberVarSpacing
2311+ -- Thanks to Juliette Reinders Folmer for the patch
2312+ - Fixed bug #3294 : Bug in attribute tokenization when content contains PHP end token or attribute closer on new line
2313+ -- Thanks to Alessandro Chitolina for the patch
2314+ -- Thanks to Juliette Reinders Folmer for the tests
2315+ - Fixed bug #3296 : PSR2.ControlStructures.SwitchDeclaration takes phpcs:ignore as content of case body
2316+ - Fixed bug #3297 : PSR2.ControlStructures.SwitchDeclaration.TerminatingComment does not handle try/finally blocks
2317+ -- Thanks to Juliette Reinders Folmer for the patch
2318+ - Fixed bug #3302 : PHP 8.0 | Tokenizer/PHP: bugfix for union types using namespace operator
2319+ -- Thanks to Juliette Reinders Folmer for the patch
2320+ - Fixed bug #3303 : findStartOfStatement() doesn't work with T_OPEN_TAG_WITH_ECHO
2321+ - Fixed bug #3316 : Arrow function not tokenized correctly when using null in union type
2322+ - Fixed bug #3317 : Problem with how phpcs handles ignored files when running in parallel
2323+ -- Thanks to Emil Andersson for the patch
2324+ - Fixed bug #3324 : PHPCS hangs processing some nested arrow functions inside a function call
2325+ - Fixed bug #3326 : Generic.Formatting.MultipleStatementAlignment error with const DEFAULT
2326+ -- Thanks to Juliette Reinders Folmer for the patch
2327+ - Fixed bug #3333 : Squiz.Objects.ObjectInstantiation: null coalesce operators are not recognized as assignment
2328+ -- Thanks to Juliette Reinders Folmer for the patch
2329+ - Fixed bug #3340 : Ensure interface and trait names are always tokenized as T_STRING
2330+ -- Thanks to Juliette Reinders Folmer for the patch
2331+ - Fixed bug #3342 : PSR12/Squiz/PEAR standards all error on promoted properties with docblocks
2332+ -- Thanks to Juliette Reinders Folmer for the patch
2333+ - Fixed bug #3345 : IF statement with no braces and double catch turned into syntax error by auto-fixer
2334+ -- Thanks to Juliette Reinders Folmer for the patch
2335+ - Fixed bug #3352 : PSR2.ControlStructures.SwitchDeclaration can remove comments on the same line as the case statement while fixing
2336+ -- Thanks to Juliette Reinders Folmer for the patch
2337+ - Fixed bug #3357 : Generic.Functions.OpeningFunctionBraceBsdAllman removes return type when additional lines are present
2338+ -- Thanks to Juliette Reinders Folmer for the patch
2339+ - Fixed bug #3362 : Generic.WhiteSpace.ScopeIndent false positive for arrow functions inside arrays
2340+ - Fixed bug #3384 : Squiz.Commenting.FileComment.SpacingAfterComment false positive on empty file
2341+ - Fixed bug #3394 : Fix PHP 8.1 auto_detect_line_endings deprecation notice
2342+ - Fixed bug #3400 : PHP 8.1: prevent deprecation notices about missing return types
2343+ -- Thanks to Juliette Reinders Folmer for the patch
2344+ - Fixed bug #3424 : PHPCS fails when using PHP 8 Constructor property promotion with attributes
2345+ -- Thanks to Juliette Reinders Folmer for the patch
2346+ - Fixed bug #3425 : PHP 8.1 | Runner::processChildProcs(): fix passing null to non-nullable bug
2347+ -- Thanks to Juliette Reinders Folmer for the patch
2348+ - Fixed bug #3445 : Nullable parameter after attribute incorrectly tokenized as ternary operator
2349+ -- Thanks to Juliette Reinders Folmer for the patch
2350+ </notes>
2351+ </release>
22662352 <release>
22672353 <version>
22682354 <release>3.6.0</release>
0 commit comments