@@ -4151,7 +4151,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4151
4151
- Improved indented PHP tag support in Generic ScopeIndentSniff
4152
4152
- Generic CamelCapsFunctionNameSniff now ignores a single leading underscore
4153
4153
- Thanks to [ Alex Slobodiskiy] [ @xt99 ] for the patch
4154
- - Standards can now be located within hidden directories (further fix for bug #20323 )
4154
+ - Standards can now be located within hidden directories (further fix for bug [ #20323 ] [ pear-20323 ] )
4155
4155
- Thanks to [ Klaus Purer] [ @klausi ] for the patch
4156
4156
- Added Generic SyntaxSniff to check for syntax errors in PHP files
4157
4157
- Thanks to [ Blaine Schmeisser] [ @bayleedev ] for the contribution
@@ -4161,18 +4161,26 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4161
4161
- Generic UpperCaseConstantSniff and LowerCaseConstantSniff now ignore function names
4162
4162
4163
4163
### Fixed
4164
- - Fixed bug #248 : FunctionCommentSniff expects ampersand on param name
4165
- - Fixed bug #265 : False positives with type hints in ForbiddenFunctionsSniff
4166
- - Fixed bug #20373 : Inline comment sniff tab handling way
4167
- - Fixed bug #20378 : Report appended to existing file if no errors found in run
4168
- - Fixed bug #20381 : Invalid "Comment closer must be on a new line"
4164
+ - Fixed bug [ #248 ] [ sq-248 ] : FunctionCommentSniff expects ampersand on param name
4165
+ - Fixed bug [ #265 ] [ sq-265 ] : False positives with type hints in ForbiddenFunctionsSniff
4166
+ - Fixed bug [ #20373 ] [ pear-20373 ] : Inline comment sniff tab handling way
4167
+ - Fixed bug [ #20378 ] [ pear-20378 ] : Report appended to existing file if no errors found in run
4168
+ - Fixed bug [ #20381 ] [ pear-20381 ] : Invalid "Comment closer must be on a new line"
4169
4169
- Thanks to [ Brad Kent] [ @bkdotcom ] for the patch
4170
- - Fixed bug #20386 : Squiz.Commenting.ClassComment.SpacingBefore thrown if first block comment
4170
+ - Fixed bug [ #20386 ] [ pear-20386 ] : Squiz.Commenting.ClassComment.SpacingBefore thrown if first block comment
4171
+
4172
+ [ sq-248 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/248
4173
+ [ sq-265 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/265
4174
+ [ pear-20323 ] : https://pear.php.net/bugs/bug.php?id=20323
4175
+ [ pear-20373 ] : https://pear.php.net/bugs/bug.php?id=20373
4176
+ [ pear-20378 ] : https://pear.php.net/bugs/bug.php?id=20378
4177
+ [ pear-20381 ] : https://pear.php.net/bugs/bug.php?id=20381
4178
+ [ pear-20386 ] : https://pear.php.net/bugs/bug.php?id=20386
4171
4179
4172
4180
## [ 2.0.0RC1] - 2014-08-06
4173
4181
### Changed
4174
4182
- PHPCBF will now fix incorrect newline characters in a file
4175
- - PHPCBF now exists cleanly when there are no errors to fix
4183
+ - PHPCBF now exits cleanly when there are no errors to fix
4176
4184
- Added phpcbf.bat file for Windows
4177
4185
- Verbose option no longer errors when using a phar file with a space in the path
4178
4186
- Fixed a reporting error when using HHVM
@@ -4190,7 +4198,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4190
4198
- The filtering component of the --extensions argument is now ignored again when passing filenames
4191
4199
- Can still be used to specify a custom tokenizer for each extension when passing filenames
4192
4200
- If no tokenizer is specified, default values will be used for common file extensions
4193
- - Diff report now produces relative paths on Windows, where possible (further fix for bug #20234 )
4201
+ - Diff report now produces relative paths on Windows, where possible (further fix for bug [ #20234 ] [ pear-20234 ] )
4194
4202
- If a token's content has been modified by the tab-width setting, it will now have an orig_content in the tokens array
4195
4203
- Generic DisallowSpaceIndent and DisallowTabIndent sniffs now check original indent content even when tab-width is set
4196
4204
- Previously, setting --tab-width would force both to check the indent as spaces
@@ -4214,29 +4222,46 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4214
4222
- Thanks to [ Ole Martin Handeland] [ @olemartinorg ] for the patch
4215
4223
- Generic LowerCaseConstantSniff and UpperCaseConstantSniff now ignore namespaces beginning with TRUE/FALSE/NULL
4216
4224
- Thanks to [ Renan Gonçalves] [ @renan ] for the patch
4217
- - Squiz InlineCommentSniff no longer requires a blank line after post-statement comments (request #20299 )
4225
+ - Squiz InlineCommentSniff no longer requires a blank line after post-statement comments (request [ #20299 ] [ pear-20299 ] )
4218
4226
- Squiz SelfMemberReferenceSniff now works correctly with namespaces
4219
4227
- Squiz FunctionCommentSniff is now more relaxed when checking namespaced type hints
4220
- - Tab characters are now encoded in abstract pattern errors messages
4228
+ - Tab characters are now encoded in abstract pattern error messages
4221
4229
- Thanks to [ Blaine Schmeisser] [ @bayleedev ] for the patch
4222
- - Invalid sniff codes passed to --sniffs now show a friendly error message (request #20313 )
4223
- - Generic LineLengthSniff now shows a warning if the iconv module is disabled (request #20314 )
4230
+ - Invalid sniff codes passed to --sniffs now show a friendly error message (request [ #20313 ] [ pear-20313 ] )
4231
+ - Generic LineLengthSniff now shows a warning if the iconv module is disabled (request [ #20314 ] [ pear-20314 ] )
4224
4232
- Source report no longer shows errors if category or sniff names ends in an uppercase error
4225
4233
- Thanks to [ Jonathan Marcil] [ @jmarcil ] for the patch
4226
4234
4227
4235
### Fixed
4228
- - Fixed bug #20261 : phpcbf has an endless fixing loop
4229
- - Fixed bug #20268 : Incorrect documentation titles in PEAR documentation
4230
- - Fixed bug #20296 : new array notion in function comma check fails
4231
- - Fixed bug #20297 : phar does not work when renamed it to phpcs
4232
- - Fixed bug #20307 : PHP_CodeSniffer_Standards_AbstractVariableSniff analyze traits
4233
- - Fixed bug #20308 : Squiz.ValidVariableNameSniff - wrong variable usage
4234
- - Fixed bug #20309 : Use "member variable" term in sniff "processMemberVar" method
4235
- - Fixed bug #20310 : PSR2 does not check for space after function name
4236
- - Fixed bug #20322 : Display rules set to type=error even when suppressing warnings
4237
- - Fixed bug #20323 : PHPCS tries to load sniffs from hidden directories
4238
- - Fixed bug #20346 : Fixer endless loop with Squiz.CSS sniffs
4239
- - Fixed bug #20355 : No sniffs are registered with PHAR on Windows
4236
+ - Fixed bug [ #20261 ] [ pear-20261 ] : phpcbf has an endless fixing loop
4237
+ - Fixed bug [ #20268 ] [ pear-20268 ] : Incorrect documentation titles in PEAR documentation
4238
+ - Fixed bug [ #20296 ] [ pear-20296 ] : new array notion in function comma check fails
4239
+ - Fixed bug [ #20297 ] [ pear-20297 ] : phar does not work when renamed it to phpcs
4240
+ - Fixed bug [ #20307 ] [ pear-20307 ] : PHP_CodeSniffer_Standards_AbstractVariableSniff analyze traits
4241
+ - Fixed bug [ #20308 ] [ pear-20308 ] : Squiz.ValidVariableNameSniff - wrong variable usage
4242
+ - Fixed bug [ #20309 ] [ pear-20309 ] : Use "member variable" term in sniff "processMemberVar" method
4243
+ - Fixed bug [ #20310 ] [ pear-20310 ] : PSR2 does not check for space after function name
4244
+ - Fixed bug [ #20322 ] [ pear-20322 ] : Display rules set to type=error even when suppressing warnings
4245
+ - Fixed bug [ #20323 ] [ pear-20323 ] : PHPCS tries to load sniffs from hidden directories
4246
+ - Fixed bug [ #20346 ] [ pear-20346 ] : Fixer endless loop with Squiz.CSS sniffs
4247
+ - Fixed bug [ #20355 ] [ pear-20355 ] : No sniffs are registered with PHAR on Windows
4248
+
4249
+ [ pear-20234 ] : https://pear.php.net/bugs/bug.php?id=20234
4250
+ [ pear-20261 ] : https://pear.php.net/bugs/bug.php?id=20261
4251
+ [ pear-20268 ] : https://pear.php.net/bugs/bug.php?id=20268
4252
+ [ pear-20296 ] : https://pear.php.net/bugs/bug.php?id=20296
4253
+ [ pear-20297 ] : https://pear.php.net/bugs/bug.php?id=20297
4254
+ [ pear-20299 ] : https://pear.php.net/bugs/bug.php?id=20299
4255
+ [ pear-20307 ] : https://pear.php.net/bugs/bug.php?id=20307
4256
+ [ pear-20308 ] : https://pear.php.net/bugs/bug.php?id=20308
4257
+ [ pear-20309 ] : https://pear.php.net/bugs/bug.php?id=20309
4258
+ [ pear-20310 ] : https://pear.php.net/bugs/bug.php?id=20310
4259
+ [ pear-20313 ] : https://pear.php.net/bugs/bug.php?id=20313
4260
+ [ pear-20314 ] : https://pear.php.net/bugs/bug.php?id=20314
4261
+ [ pear-20322 ] : https://pear.php.net/bugs/bug.php?id=20322
4262
+ [ pear-20323 ] : https://pear.php.net/bugs/bug.php?id=20323
4263
+ [ pear-20346 ] : https://pear.php.net/bugs/bug.php?id=20346
4264
+ [ pear-20355 ] : https://pear.php.net/bugs/bug.php?id=20355
4240
4265
4241
4266
## [ 1.5.4] - 2014-08-06
4242
4267
### Changed
@@ -4253,24 +4278,36 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4253
4278
- Thanks to [ Ole Martin Handeland] [ @olemartinorg ] for the patch
4254
4279
- Generic LowerCaseConstantSniff and UpperCaseConstantSniff now ignore namespaces beginning with TRUE/FALSE/NULL
4255
4280
- Thanks to [ Renan Gonçalves] [ @renan ] for the patch
4256
- - Squiz InlineCommentSniff no longer requires a blank line after post-statement comments (request #20299 )
4281
+ - Squiz InlineCommentSniff no longer requires a blank line after post-statement comments (request [ #20299 ] [ pear-20299 ] )
4257
4282
- Squiz SelfMemberReferenceSniff now works correctly with namespaces
4258
- - Tab characters are now encoded in abstract pattern errors messages
4283
+ - Tab characters are now encoded in abstract pattern error messages
4259
4284
- Thanks to [ Blaine Schmeisser] [ @bayleedev ] for the patch
4260
- - Invalid sniff codes passed to --sniffs now show a friendly error message (request #20313 )
4261
- - Generic LineLengthSniff now shows a warning if the iconv module is disabled (request #20314 )
4285
+ - Invalid sniff codes passed to --sniffs now show a friendly error message (request [ #20313 ] [ pear-20313 ] )
4286
+ - Generic LineLengthSniff now shows a warning if the iconv module is disabled (request [ #20314 ] [ pear-20314 ] )
4262
4287
- Source report no longer shows errors if category or sniff names ends in an uppercase error
4263
4288
- Thanks to [ Jonathan Marcil] [ @jmarcil ] for the patch
4264
4289
4265
4290
### Fixed
4266
- - Fixed bug #20268 : Incorrect documentation titles in PEAR documentation
4267
- - Fixed bug #20296 : new array notion in function comma check fails
4268
- - Fixed bug #20307 : PHP_CodeSniffer_Standards_AbstractVariableSniff analyze traits
4269
- - Fixed bug #20308 : Squiz.ValidVariableNameSniff - wrong variable usage
4270
- - Fixed bug #20309 : Use "member variable" term in sniff "processMemberVar" method
4271
- - Fixed bug #20310 : PSR2 does not check for space after function name
4272
- - Fixed bug #20322 : Display rules set to type=error even when suppressing warnings
4273
- - Fixed bug #20323 : PHPCS tries to load sniffs from hidden directories
4291
+ - Fixed bug [ #20268 ] [ pear-20268 ] : Incorrect documentation titles in PEAR documentation
4292
+ - Fixed bug [ #20296 ] [ pear-20296 ] : new array notion in function comma check fails
4293
+ - Fixed bug [ #20307 ] [ pear-20307 ] : PHP_CodeSniffer_Standards_AbstractVariableSniff analyze traits
4294
+ - Fixed bug [ #20308 ] [ pear-20308 ] : Squiz.ValidVariableNameSniff - wrong variable usage
4295
+ - Fixed bug [ #20309 ] [ pear-20309 ] : Use "member variable" term in sniff "processMemberVar" method
4296
+ - Fixed bug [ #20310 ] [ pear-20310 ] : PSR2 does not check for space after function name
4297
+ - Fixed bug [ #20322 ] [ pear-20322 ] : Display rules set to type=error even when suppressing warnings
4298
+ - Fixed bug [ #20323 ] [ pear-20323 ] : PHPCS tries to load sniffs from hidden directories
4299
+
4300
+ [ pear-20268 ] : https://pear.php.net/bugs/bug.php?id=20268
4301
+ [ pear-20296 ] : https://pear.php.net/bugs/bug.php?id=20296
4302
+ [ pear-20299 ] : https://pear.php.net/bugs/bug.php?id=20299
4303
+ [ pear-20307 ] : https://pear.php.net/bugs/bug.php?id=20307
4304
+ [ pear-20308 ] : https://pear.php.net/bugs/bug.php?id=20308
4305
+ [ pear-20309 ] : https://pear.php.net/bugs/bug.php?id=20309
4306
+ [ pear-20310 ] : https://pear.php.net/bugs/bug.php?id=20310
4307
+ [ pear-20313 ] : https://pear.php.net/bugs/bug.php?id=20313
4308
+ [ pear-20314 ] : https://pear.php.net/bugs/bug.php?id=20314
4309
+ [ pear-20322 ] : https://pear.php.net/bugs/bug.php?id=20322
4310
+ [ pear-20323 ] : https://pear.php.net/bugs/bug.php?id=20323
4274
4311
4275
4312
## [ 2.0.0a2] - 2014-05-01
4276
4313
### Changed
@@ -4296,7 +4333,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4296
4333
- PSR1 CamelCapsMethodNameSniff now ignores magic methods
4297
4334
- Thanks to [ Eser Ozvataf] [ @eser ] for the patch
4298
4335
- PSR1 SideEffectsSniff now ignores methods named define()
4299
- - PSR1 and PEAR ClassDeclarationSniffs now support traits (request #20208 )
4336
+ - PSR1 and PEAR ClassDeclarationSniffs now support traits (request [ #20208 ] [ pear-20208 ] )
4300
4337
- PSR2 ControlStructureSpacingSniff now allows newlines before/after parentheses
4301
4338
- Thanks to [ Maurus Cuelenaere] [ @mcuelenaere ] for the patch
4302
4339
- PSR2 ControlStructureSpacingSniff now checks TRY and CATCH statements
@@ -4307,20 +4344,33 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4307
4344
- Squiz SwitchDeclarationSniff now allows exit() as a breaking statement for case/default
4308
4345
- Squiz ValidVariableNameSniff and Zend ValidVariableNameSniff now ignore additional PHP reserved vars
4309
4346
- Thanks to Mikuláš Dítě and Adrian Crepaz for the patch
4310
- - Sniff code Squiz.WhiteSpace.MemberVarSpacing.After changed to Squiz.WhiteSpace.MemberVarSpacing.Incorrect (request #20241 )
4347
+ - Sniff code Squiz.WhiteSpace.MemberVarSpacing.After changed to Squiz.WhiteSpace.MemberVarSpacing.Incorrect (request [ #20241 ] [ pear-20241 ] )
4311
4348
4312
4349
### Fixed
4313
- - Fixed bug #20200 : Invalid JSON produced with specific error message
4314
- - Fixed bug #20204 : Ruleset exclude checks are case sensitive
4315
- - Fixed bug #20213 : Invalid error, Inline IF must be declared on single line
4316
- - Fixed bug #20225 : array_merge() that takes more than one line generates error
4317
- - Fixed bug #20230 : Squiz ControlStructureSpacing sniff assumes specific condition formatting
4318
- - Fixed bug #20234 : phpcbf patch command absolute paths
4319
- - Fixed bug #20240 : Squiz block comment sniff fails when newline present
4320
- - Fixed bug #20247 : The Squiz.WhiteSpace.ControlStructureSpacing sniff and do-while
4350
+ - Fixed bug [ #20200 ] [ pear-20200 ] : Invalid JSON produced with specific error message
4351
+ - Fixed bug [ #20204 ] [ pear-20204 ] : Ruleset exclude checks are case sensitive
4352
+ - Fixed bug [ #20213 ] [ pear-20213 ] : Invalid error, Inline IF must be declared on single line
4353
+ - Fixed bug [ #20225 ] [ pear-20225 ] : array_merge() that takes more than one line generates error
4354
+ - Fixed bug [ #20230 ] [ pear-20230 ] : Squiz ControlStructureSpacing sniff assumes specific condition formatting
4355
+ - Fixed bug [ #20234 ] [ pear-20234 ] : phpcbf patch command absolute paths
4356
+ - Fixed bug [ #20240 ] [ pear-20240 ] : Squiz block comment sniff fails when newline present
4357
+ - Fixed bug [ #20247 ] [ pear-20247 ] : The Squiz.WhiteSpace.ControlStructureSpacing sniff and do-while
4321
4358
- Thanks to [ Alexander Obuhovich] [ @aik099 ] for the patch
4322
- - Fixed bug #20248 : The Squiz_Sniffs_WhiteSpace_ControlStructureSpacingSniff sniff and empty scope
4323
- - Fixed bug #20252 : Unitialized string offset when package name starts with underscore
4359
+ - Fixed bug [ #20248 ] [ pear-20248 ] : The Squiz_Sniffs_WhiteSpace_ControlStructureSpacingSniff sniff and empty scope
4360
+ - Fixed bug [ #20252 ] [ pear-20252 ] : Unitialized string offset when package name starts with underscore
4361
+
4362
+ [ pear-20200 ] : https://pear.php.net/bugs/bug.php?id=20200
4363
+ [ pear-20204 ] : https://pear.php.net/bugs/bug.php?id=20204
4364
+ [ pear-20208 ] : https://pear.php.net/bugs/bug.php?id=20208
4365
+ [ pear-20213 ] : https://pear.php.net/bugs/bug.php?id=20213
4366
+ [ pear-20225 ] : https://pear.php.net/bugs/bug.php?id=20225
4367
+ [ pear-20230 ] : https://pear.php.net/bugs/bug.php?id=20230
4368
+ [ pear-20234 ] : https://pear.php.net/bugs/bug.php?id=20234
4369
+ [ pear-20240 ] : https://pear.php.net/bugs/bug.php?id=20240
4370
+ [ pear-20241 ] : https://pear.php.net/bugs/bug.php?id=20241
4371
+ [ pear-20247 ] : https://pear.php.net/bugs/bug.php?id=20247
4372
+ [ pear-20248 ] : https://pear.php.net/bugs/bug.php?id=20248
4373
+ [ pear-20252 ] : https://pear.php.net/bugs/bug.php?id=20252
4324
4374
4325
4375
## [ 1.5.3] - 2014-05-01
4326
4376
### Changed
0 commit comments