@@ -95,6 +95,42 @@ The file documents changes to the PHP_CodeSniffer project.
9595 </rule >
9696 ```
9797
98+ ## [3.5.6] - 2020-08-10
99+ ### Added
100+ - Added support for PHP 8.0 magic constant dereferencing
101+ - Thanks to Juliette Reinders Folmer for the patch
102+ - Added support for changes to the way PHP 8.0 tokenizes comments
103+ - The existing PHP 5-7 behaviour has been replicated for version 8, so no sniff changes are required
104+ - Thanks to Juliette Reinders Folmer for the patch
105+ - `File::getMethodProperties()` now detects the PHP 8.0 static return type
106+ - Thanks to Juliette Reinders Folmer for the patch
107+ - The PHP 8.0 static return type is now supported for arrow functions
108+ - Thanks to Juliette Reinders Folmer for the patch
109+
110+ ### Changed
111+ - The cache is no longer used if the list of loaded PHP extensions changes
112+ - Thanks to Juliette Reinders Folmer for the patch
113+ - `Generic.NamingConventions.CamelCapsFunctionName` no longer reports `__serialize` and `__unserialize` as invalid names
114+ - Thanks to Filip Š for the patch
115+ - `PEAR.NamingConventions.ValidFunctionName` no longer reports `__serialize` and `__unserialize` as invalid names
116+ - Thanks to Filip Š for the patch
117+ - `Squiz.Scope.StaticThisUsage` now detects usage of `$this` inside closures and arrow functions
118+ - Thanks to Michał Bundyra for the patch
119+
120+ ### Fixed
121+ - Fixed bug #2877 : PEAR.Functions.FunctionCallSignature false positive for array of functions
122+ - Thanks to Vincent Langlet for the patch
123+ - Fixed bug #2888 : PSR12.Files.FileHeader blank line error with multiple namespaces in one file
124+ - Fixed bug #2926 : phpcs hangs when using arrow functions that return heredoc
125+ - Fixed bug #2943 : Redundant semicolon added to a file when fixing PSR2.Files.ClosingTag.NotAllowed
126+ - Fixed bug #2967 : Markdown generator does not output headings correctly
127+ - Thanks to Petr Bugyík for the patch
128+ - Fixed bug #2977 : File::isReference() does not detect return by reference for closures
129+ - Thanks to Juliette Reinders Folmer for the patch
130+ - Fixed bug #2994 : Generic.Formatting.DisallowMultipleStatements false positive for FOR loop with no body
131+ - Fixed bug #3033 : Error generated during tokenizing of goto statements on PHP 8
132+ - Thanks to Juliette Reinders Folmer for the patch
133+
98134## [3.5.5] - 2020-04-17
99135### Changed
100136- The T_FN backfill now works more reliably so T_FN tokens only ever represent real arrow functions
0 commit comments