@@ -2260,38 +2260,53 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2260
2260
2261
2261
### Fixed
2262
2262
- Fixed test suite compatibility with PHPUnit 7
2263
- - Fixed bug #1793 : PSR2 forcing exact indent for function call opening statements
2264
- - Fixed bug #1803 : Squiz.WhiteSpace.ScopeKeywordSpacing removes member var name while fixing if no space after scope keyword
2265
- - Fixed bug #1817 : Blank line not enforced after control structure if comment on same line as closing brace
2266
- - Fixed bug #1827 : A phpcs:enable comment is not tokenized correctly if it is outside a phpcs:disable block
2267
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2268
- - Fixed bug #1828 : Squiz.WhiteSpace.SuperfluousWhiteSpace ignoreBlankLines property ignores whitespace after single line comments
2269
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2270
- - Fixed bug #1840 : When a comment has too many asterisks, phpcbf gives FAILED TO FIX error
2271
- - Fixed bug #1867 : Cant use phpcs:ignore where the next line is HTML
2272
- - Fixed bug #1870 : Invalid warning in multiple assignments alignment with closure or anon class
2273
- - Fixed bug #1890 : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
2274
- - Fixed bug #1891 : Comment on last USE statement causes false positive for PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse
2263
+ - Fixed bug [ #1793] : PSR2 forcing exact indent for function call opening statements
2264
+ - Fixed bug [ #1803] : Squiz.WhiteSpace.ScopeKeywordSpacing removes member var name while fixing if no space after scope keyword
2265
+ - Fixed bug [ #1817] : Blank line not enforced after control structure if comment on same line as closing brace
2266
+ - Fixed bug [ #1827] : A phpcs:enable comment is not tokenized correctly if it is outside a phpcs:disable block
2267
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2268
+ - Fixed bug [ #1828] : Squiz.WhiteSpace.SuperfluousWhiteSpace ignoreBlankLines property ignores whitespace after single line comments
2269
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2270
+ - Fixed bug [ #1840] : When a comment has too many asterisks, phpcbf gives FAILED TO FIX error
2271
+ - Fixed bug [ #1867] : Can't use phpcs:ignore where the next line is HTML
2272
+ - Fixed bug [ #1870] : Invalid warning in multiple assignments alignment with closure or anon class
2273
+ - Fixed bug [ #1890] : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
2274
+ - Fixed bug [ #1891] : Comment on last USE statement causes false positive for PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse
2275
2275
- Thanks to [Matt Coleman][@iammattcoleman], [Daniel Hensby][@dhensby], and [Juliette Reinders Folmer][@jrfnl] for the patch
2276
- - Fixed bug #1901 : Fixed PHPCS annotations in multi-line tab-indented comments + not ignoring whole line for phpcs:set
2276
+ - Fixed bug [ #1901] : Fixed PHPCS annotations in multi-line tab-indented comments + not ignoring whole line for phpcs:set
2277
2277
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2278
2278
2279
+ [#1793]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1793
2280
+ [#1803]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1803
2281
+ [#1817]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1817
2282
+ [#1827]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1827
2283
+ [#1828]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1828
2284
+ [#1840]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1840
2285
+ [#1867]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1867
2286
+ [#1870]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1870
2287
+ [#1890]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1890
2288
+ [#1891]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1891
2289
+ [#1901]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1901
2290
+
2279
2291
## [3.2.2] - 2017-12-20
2280
2292
### Changed
2281
2293
- Disabled STDIN detection on Windows
2282
2294
- This fixes a problem with IDE plugins (e.g., PHPStorm) hanging on Windows
2283
2295
2284
2296
## [3.2.1] - 2017-12-18
2285
2297
### Changed
2286
- - Empty diffs are no longer followed by a newline character (request #1781)
2298
+ - Empty diffs are no longer followed by a newline character (request [ #1781] )
2287
2299
- Generic.Functions.OpeningFunctionBraceKernighanRitchie no longer complains when the open brace is followed by a close tag
2288
2300
- This makes the sniff more useful when used in templates
2289
2301
- Thanks to [Joseph Zidell][@josephzidell] for the patch
2290
2302
2291
2303
### Fixed
2292
2304
- Fixed problems with some scripts and plugins waiting for STDIN
2293
2305
- This was a notable problem with IDE plugins (e.g., PHPStorm) and build systems
2294
- - Fixed bug #1782 : Incorrect detection of operator in ternary + anonymous function
2306
+ - Fixed bug [#1782] : Incorrect detection of operator in ternary + anonymous function
2307
+
2308
+ [#1781]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1781
2309
+ [#1782]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1782
2295
2310
2296
2311
## [3.2.0] - 2017-12-13
2297
2312
### Deprecated
@@ -2314,7 +2329,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2314
2329
- phpcs:set has the token T_PHPCS_SET
2315
2330
2316
2331
### Changed
2317
- - The phpcs:disable and phpcs:ignore comments can now selectively ignore specific sniffs (request #604)
2332
+ - The phpcs:disable and phpcs:ignore comments can now selectively ignore specific sniffs (request [ #604] )
2318
2333
- E.g., phpcs:disable Generic.Commenting.Todo.Found for a specific message
2319
2334
- E.g., phpcs:disable Generic.Commenting.Todo for a whole sniff
2320
2335
- E.g., phpcs:disable Generic.Commenting for a whole category of sniffs
@@ -2336,7 +2351,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2336
2351
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2337
2352
- Added phpcs.xsd to allow validation of ruleset XML files
2338
2353
- Thanks to [Renaat De Muynck][@renaatdemuynck] for the contribution
2339
- - File paths specified using --stdin-path can now point to fake file locations (request #1488)
2354
+ - File paths specified using --stdin-path can now point to fake file locations (request [ #1488] )
2340
2355
- Previously, STDIN files using fake file paths were excluded from checking
2341
2356
- Setting an empty basepath (--basepath=) on the CLI will now clear a basepath set directly in a ruleset
2342
2357
- Thanks to [Xaver Loppenstedt][@xalopp] for the patch
@@ -2397,23 +2412,41 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2397
2412
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2398
2413
2399
2414
### Fixed
2400
- - Fixed bug #1462 : Error processing cyrillic strings in Tokenizer
2401
- - Fixed bug #1573 : Squiz.WhiteSpace.LanguageConstructSpacing does not properly check for tabs and newlines
2415
+ - Fixed bug [ #1462] : Error processing cyrillic strings in Tokenizer
2416
+ - Fixed bug [ #1573] : Squiz.WhiteSpace.LanguageConstructSpacing does not properly check for tabs and newlines
2402
2417
- Thanks to [Michał Bundyra][@michalbundyra] for the patch
2403
- - Fixed bug #1590 : InlineControlStructure CBF issue while adding braces to an if thats returning a nested function
2404
- - Fixed bug #1718 : Unclosed strings at EOF sometimes tokenized as T_WHITESPACE by the JS tokenizer
2405
- - Fixed bug #1731 : Directory exclusions do not work as expected when a single file name is passed to phpcs
2406
- - Fixed bug #1737 : Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error
2407
- - Fixed bug #1746 : Very large reports can sometimes become garbled when using the parallel option
2408
- - Fixed bug #1747 : Squiz.Scope.StaticThisUsage incorrectly looking inside closures
2409
- - Fixed bug #1757 : Unknown type hint "object" in Squiz.Commenting.FunctionComment
2410
- - Fixed bug #1758 : PHPCS gets stuck creating file list when processing circular symlinks
2411
- - Fixed bug #1761 : Generic.WhiteSpace.ScopeIndent error on multi-line function call with static closure argument
2412
- - Fixed bug #1762 : Generic.WhiteSpace.Disallow[Space/Tab]Indent not inspecting content before open tag
2413
- - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2414
- - Fixed bug #1769 : Custom "define" function triggers a warning about declaring new symbols
2415
- - Fixed bug #1776 : Squiz.Scope.StaticThisUsage incorrectly looking inside anon classes
2416
- - Fixed bug #1777 : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
2418
+ - Fixed bug [#1590] : InlineControlStructure CBF issue while adding braces to an if that's returning a nested function
2419
+ - Fixed bug [#1718] : Unclosed strings at EOF sometimes tokenized as T_WHITESPACE by the JS tokenizer
2420
+ - Fixed bug [#1731] : Directory exclusions do not work as expected when a single file name is passed to phpcs
2421
+ - Fixed bug [#1737] : Squiz.CSS.EmptyStyleDefinition sees comment as style definition and fails to report error
2422
+ - Fixed bug [#1746] : Very large reports can sometimes become garbled when using the parallel option
2423
+ - Fixed bug [#1747] : Squiz.Scope.StaticThisUsage incorrectly looking inside closures
2424
+ - Fixed bug [#1757] : Unknown type hint "object" in Squiz.Commenting.FunctionComment
2425
+ - Fixed bug [#1758] : PHPCS gets stuck creating file list when processing circular symlinks
2426
+ - Fixed bug [#1761] : Generic.WhiteSpace.ScopeIndent error on multi-line function call with static closure argument
2427
+ - Fixed bug [#1762] : Generic.WhiteSpace.Disallow[Space/Tab]Indent not inspecting content before open tag
2428
+ - Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch
2429
+ - Fixed bug [#1769] : Custom "define" function triggers a warning about declaring new symbols
2430
+ - Fixed bug [#1776] : Squiz.Scope.StaticThisUsage incorrectly looking inside anon classes
2431
+ - Fixed bug [#1777] : Generic.WhiteSpace.ScopeIndent incorrect indent errors when self called function proceeded by comment
2432
+
2433
+ [#604]: https://github.com/squizlabs/PHP_CodeSniffer/issues/604
2434
+ [#1488]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1488
2435
+ [#1462]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1462
2436
+ [#1573]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1573
2437
+ [#1590]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1590
2438
+ [#1718]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1718
2439
+ [#1731]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1731
2440
+ [#1737]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1737
2441
+ [#1746]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1746
2442
+ [#1747]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1747
2443
+ [#1757]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1757
2444
+ [#1758]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1758
2445
+ [#1761]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1761
2446
+ [#1762]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1762
2447
+ [#1769]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1769
2448
+ [#1776]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1776
2449
+ [#1777]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1777
2417
2450
2418
2451
## [3.1.1] - 2017-10-17
2419
2452
### Changed
0 commit comments