@@ -2158,38 +2158,53 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2158
2158
2159
2159
### Fixed
2160
2160
- Fixed test suite compatibility with PHPUnit 7
2161
- - Fixed bug #1793 : PSR2 forcing exact indent for function call opening statements
2162
- - Fixed bug #1803 : Squiz.WhiteSpace.ScopeKeywordSpacing removes member var name while fixing if no space after scope keyword
2163
- - Fixed bug #1817 : Blank line not enforced after control structure if comment on same line as closing brace
2164
- - Fixed bug #1827 : A phpcs: enable comment is not tokenized correctly if it is outside a phpcs: disable block
2165
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2166
- - Fixed bug #1828 : Squiz.WhiteSpace.SuperfluousWhiteSpace ignoreBlankLines property ignores whitespace after single line comments
2167
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2168
- - Fixed bug #1840 : When a comment has too many asterisks, phpcbf gives FAILED TO FIX error
2169
- - Fixed bug #1867 : Cant use phpcs: ignore where the next line is HTML
2170
- - Fixed bug #1870 : Invalid warning in multiple assignments alignment with closure or anon class
2171
- - Fixed bug #1890 : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
2172
- - Fixed bug #1891 : Comment on last USE statement causes false positive for PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse
2161
+ - Fixed bug [ #1793 ] : PSR2 forcing exact indent for function call opening statements
2162
+ - Fixed bug [ #1803 ] : Squiz.WhiteSpace.ScopeKeywordSpacing removes member var name while fixing if no space after scope keyword
2163
+ - Fixed bug [ #1817 ] : Blank line not enforced after control structure if comment on same line as closing brace
2164
+ - Fixed bug [ #1827 ] : A phpcs: enable comment is not tokenized correctly if it is outside a phpcs: disable block
2165
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2166
+ - Fixed bug [ #1828 ] : Squiz.WhiteSpace.SuperfluousWhiteSpace ignoreBlankLines property ignores whitespace after single line comments
2167
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2168
+ - Fixed bug [ #1840 ] : When a comment has too many asterisks, phpcbf gives FAILED TO FIX error
2169
+ - Fixed bug [ #1867 ] : Can't use phpcs: ignore where the next line is HTML
2170
+ - Fixed bug [ #1870 ] : Invalid warning in multiple assignments alignment with closure or anon class
2171
+ - Fixed bug [ #1890 ] : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
2172
+ - Fixed bug [ #1891 ] : Comment on last USE statement causes false positive for PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse
2173
2173
- Thanks to [ Matt Coleman] [ @iammattcoleman ] , [ Daniel Hensby] [ @dhensby ] , and [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2174
- - Fixed bug #1901 : Fixed PHPCS annotations in multi-line tab-indented comments + not ignoring whole line for phpcs: set
2174
+ - Fixed bug [ #1901 ] : Fixed PHPCS annotations in multi-line tab-indented comments + not ignoring whole line for phpcs: set
2175
2175
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2176
2176
2177
+ [ #1793 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1793
2178
+ [ #1803 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1803
2179
+ [ #1817 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1817
2180
+ [ #1827 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1827
2181
+ [ #1828 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1828
2182
+ [ #1840 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1840
2183
+ [ #1867 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1867
2184
+ [ #1870 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1870
2185
+ [ #1890 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1890
2186
+ [ #1891 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1891
2187
+ [ #1901 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1901
2188
+
2177
2189
## [ 3.2.2] - 2017-12-20
2178
2190
### Changed
2179
2191
- Disabled STDIN detection on Windows
2180
2192
- This fixes a problem with IDE plugins (e.g., PHPStorm) hanging on Windows
2181
2193
2182
2194
## [ 3.2.1] - 2017-12-18
2183
2195
### Changed
2184
- - Empty diffs are no longer followed by a newline character (request #1781 )
2196
+ - Empty diffs are no longer followed by a newline character (request [ #1781 ] )
2185
2197
- Generic.Functions.OpeningFunctionBraceKernighanRitchie no longer complains when the open brace is followed by a close tag
2186
2198
- This makes the sniff more useful when used in templates
2187
2199
- Thanks to [ Joseph Zidell] [ @josephzidell ] for the patch
2188
2200
2189
2201
### Fixed
2190
2202
- Fixed problems with some scripts and plugins waiting for STDIN
2191
2203
- This was a notable problem with IDE plugins (e.g., PHPStorm) and build systems
2192
- - Fixed bug #1782 : Incorrect detection of operator in ternary + anonymous function
2204
+ - Fixed bug [ #1782 ] : Incorrect detection of operator in ternary + anonymous function
2205
+
2206
+ [ #1781 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1781
2207
+ [ #1782 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1782
2193
2208
2194
2209
## [ 3.2.0] - 2017-12-13
2195
2210
### Deprecated
@@ -2212,7 +2227,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2212
2227
- phpcs: set has the token T_PHPCS_SET
2213
2228
2214
2229
### Changed
2215
- - The phpcs: disable and phpcs: ignore comments can now selectively ignore specific sniffs (request #604 )
2230
+ - The phpcs: disable and phpcs: ignore comments can now selectively ignore specific sniffs (request [ #604 ] )
2216
2231
- E.g., phpcs: disable Generic.Commenting.Todo.Found for a specific message
2217
2232
- E.g., phpcs: disable Generic.Commenting.Todo for a whole sniff
2218
2233
- E.g., phpcs: disable Generic.Commenting for a whole category of sniffs
@@ -2234,7 +2249,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2234
2249
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2235
2250
- Added phpcs.xsd to allow validation of ruleset XML files
2236
2251
- Thanks to [ Renaat De Muynck] [ @renaatdemuynck ] for the contribution
2237
- - File paths specified using --stdin-path can now point to fake file locations (request #1488 )
2252
+ - File paths specified using --stdin-path can now point to fake file locations (request [ #1488 ] )
2238
2253
- Previously, STDIN files using fake file paths were excluded from checking
2239
2254
- Setting an empty basepath (--basepath=) on the CLI will now clear a basepath set directly in a ruleset
2240
2255
- Thanks to [ Xaver Loppenstedt] [ @xalopp ] for the patch
@@ -2295,23 +2310,41 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2295
2310
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2296
2311
2297
2312
### Fixed
2298
- - Fixed bug #1462 : Error processing cyrillic strings in Tokenizer
2299
- - Fixed bug #1573 : Squiz.WhiteSpace.LanguageConstructSpacing does not properly check for tabs and newlines
2313
+ - Fixed bug [ #1462 ] : Error processing cyrillic strings in Tokenizer
2314
+ - Fixed bug [ #1573 ] : Squiz.WhiteSpace.LanguageConstructSpacing does not properly check for tabs and newlines
2300
2315
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
2301
- - Fixed bug #1590 : InlineControlStructure CBF issue while adding braces to an if thats returning a nested function
2302
- - Fixed bug #1718 : Unclosed strings at EOF sometimes tokenized as T_WHITESPACE by the JS tokenizer
2303
- - Fixed bug #1731 : Directory exclusions do not work as expected when a single file name is passed to phpcs
2304
- - Fixed bug #1737 : Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error
2305
- - Fixed bug #1746 : Very large reports can sometimes become garbled when using the parallel option
2306
- - Fixed bug #1747 : Squiz.Scope.StaticThisUsage incorrectly looking inside closures
2307
- - Fixed bug #1757 : Unknown type hint "object" in Squiz.Commenting.FunctionComment
2308
- - Fixed bug #1758 : PHPCS gets stuck creating file list when processing circular symlinks
2309
- - Fixed bug #1761 : Generic.WhiteSpace.ScopeIndent error on multi-line function call with static closure argument
2310
- - Fixed bug #1762 : Generic.WhiteSpace.Disallow[ Space/Tab] Indent not inspecting content before open tag
2311
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2312
- - Fixed bug #1769 : Custom "define" function triggers a warning about declaring new symbols
2313
- - Fixed bug #1776 : Squiz.Scope.StaticThisUsage incorrectly looking inside anon classes
2314
- - Fixed bug #1777 : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
2316
+ - Fixed bug [ #1590 ] : InlineControlStructure CBF issue while adding braces to an if that's returning a nested function
2317
+ - Fixed bug [ #1718 ] : Unclosed strings at EOF sometimes tokenized as T_WHITESPACE by the JS tokenizer
2318
+ - Fixed bug [ #1731 ] : Directory exclusions do not work as expected when a single file name is passed to phpcs
2319
+ - Fixed bug [ #1737 ] : Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error
2320
+ - Fixed bug [ #1746 ] : Very large reports can sometimes become garbled when using the parallel option
2321
+ - Fixed bug [ #1747 ] : Squiz.Scope.StaticThisUsage incorrectly looking inside closures
2322
+ - Fixed bug [ #1757 ] : Unknown type hint "object" in Squiz.Commenting.FunctionComment
2323
+ - Fixed bug [ #1758 ] : PHPCS gets stuck creating file list when processing circular symlinks
2324
+ - Fixed bug [ #1761 ] : Generic.WhiteSpace.ScopeIndent error on multi-line function call with static closure argument
2325
+ - Fixed bug [ #1762 ] : Generic.WhiteSpace.Disallow[ Space/Tab] Indent not inspecting content before open tag
2326
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2327
+ - Fixed bug [ #1769 ] : Custom "define" function triggers a warning about declaring new symbols
2328
+ - Fixed bug [ #1776 ] : Squiz.Scope.StaticThisUsage incorrectly looking inside anon classes
2329
+ - Fixed bug [ #1777 ] : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
2330
+
2331
+ [ #604 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/604
2332
+ [ #1488 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1488
2333
+ [ #1462 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1462
2334
+ [ #1573 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1573
2335
+ [ #1590 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1590
2336
+ [ #1718 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1718
2337
+ [ #1731 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1731
2338
+ [ #1737 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1737
2339
+ [ #1746 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1746
2340
+ [ #1747 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1747
2341
+ [ #1757 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1757
2342
+ [ #1758 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1758
2343
+ [ #1761 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1761
2344
+ [ #1762 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1762
2345
+ [ #1769 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1769
2346
+ [ #1776 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1776
2347
+ [ #1777 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1777
2315
2348
2316
2349
## [ 3.1.1] - 2017-10-17
2317
2350
### Changed
0 commit comments