@@ -3987,11 +3987,17 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
3987
3987
- Thanks to [ Thibaud Fabre] [ @fabre-thibaud ] for the patch
3988
3988
3989
3989
### Fixed
3990
- - Fixed bug #280 : The --config-show option generates error when there is no config file
3991
- - Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
3992
- - Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3993
- - Fixed bug #310 : Variadics not recognized by tokenizer
3994
- - Fixed bug #311 : Suppression of function prototype breaks checking of lines within function
3990
+ - Fixed bug [ #280 ] [ sq-280 ] : The --config-show option generates error when there is no config file
3991
+ - Fixed bug [ #306 ] [ sq-306 ] : File containing only a namespace declaration raises undefined index notice
3992
+ - Fixed bug [ #308 ] [ sq-308 ] : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
3993
+ - Fixed bug [ #310 ] [ sq-310 ] : Variadics not recognized by tokenizer
3994
+ - Fixed bug [ #311 ] [ sq-311 ] : Suppression of function prototype breaks checking of lines within function
3995
+
3996
+ [ sq-280 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/280
3997
+ [ sq-306 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/306
3998
+ [ sq-308 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/308
3999
+ [ sq-310 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/310
4000
+ [ sq-311 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/311
3995
4001
3996
4002
## [ 2.0.0RC4] - 2014-11-07
3997
4003
### Changed
@@ -4017,14 +4023,23 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4017
4023
- Running unit tests with the -v CLI argument no longer generates PHP errors
4018
4024
4019
4025
### Fixed
4020
- - Fixed bug #295 : ScopeIndentSniff hangs when processing nested closures
4021
- - Fixed bug #298 : False positive in ScopeIndentSniff when anonymous functions are used with method chaining
4022
- - Fixed bug #302 : Fixing code in Squiz InlineComment sniff can remove some comment text
4023
- - Fixed bug #303 : Open and close tag on same line can cause a PHP notice checking scope indent
4024
- - Fixed bug #306 : File containing only a namespace declaration raises undefined index notice
4025
- - Fixed bug #307 : Conditional breaks in case statements get incorrect indentations
4026
- - Fixed bug #308 : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
4027
- - Fixed bug #310 : Variadics not recognized by tokenizer
4026
+ - Fixed bug [ #295 ] [ sq-295 ] : ScopeIndentSniff hangs when processing nested closures
4027
+ - Fixed bug [ #298 ] [ sq-298 ] : False positive in ScopeIndentSniff when anonymous functions are used with method chaining
4028
+ - Fixed bug [ #302 ] [ sq-302 ] : Fixing code in Squiz InlineComment sniff can remove some comment text
4029
+ - Fixed bug [ #303 ] [ sq-303 ] : Open and close tag on same line can cause a PHP notice checking scope indent
4030
+ - Fixed bug [ #306 ] [ sq-306 ] : File containing only a namespace declaration raises undefined index notice
4031
+ - Fixed bug [ #307 ] [ sq-307 ] : Conditional breaks in case statements get incorrect indentations
4032
+ - Fixed bug [ #308 ] [ sq-308 ] : Squiz InlineIfDeclarationSniff fails on ternary operators inside closure
4033
+ - Fixed bug [ #310 ] [ sq-310 ] : Variadics not recognized by tokenizer
4034
+
4035
+ [ sq-295 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/295
4036
+ [ sq-298 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/298
4037
+ [ sq-302 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/302
4038
+ [ sq-303 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/303
4039
+ [ sq-306 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/306
4040
+ [ sq-307 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/307
4041
+ [ sq-308 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/308
4042
+ [ sq-310 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/310
4028
4043
4029
4044
## [ 2.0.0RC3] - 2014-10-16
4030
4045
### Changed
@@ -4045,26 +4060,29 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4045
4060
- Squiz EmbeddedPhpSniff now checks open and close tag indents and fixes some errors
4046
4061
- Squiz FileCommentSniff no longer throws incorrect blank line before comment errors in JS files
4047
4062
- Squiz ClassDeclarationSniff now has better checking for blank lines after a closing brace
4048
- - Removed error Squiz.Classes.ClassDeclaration.NoNewlineAfterCloseBrace (request #285 )
4063
+ - Removed error Squiz.Classes.ClassDeclaration.NoNewlineAfterCloseBrace (request [ #285 ] [ sq-285 ] )
4049
4064
- Already handled by Squiz.Classes.ClassDeclaration.CloseBraceSameLine
4050
4065
4051
4066
### Fixed
4052
- - Fixed bug #280 : The --config-show option generates error when there is no config file
4067
+ - Fixed bug [ #280 ] [ sq-280 ] : The --config-show option generates error when there is no config file
4068
+
4069
+ [ sq-280 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/280
4070
+ [ sq-285 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/285
4053
4071
4054
4072
## [ 2.0.0RC2] - 2014-09-26
4055
4073
### Changed
4056
- - Minified JS and CSS files are now detected and skipped (fixes bug #252 and bug #19899 )
4074
+ - Minified JS and CSS files are now detected and skipped (fixes bug [ #252 ] [ sq-252 ] and bug [ #19899 ] [ pear-19899 ] )
4057
4075
- A warning will be added to the file so it can be found in the report and ignored in the future
4058
4076
- Fixed incorrect length of JS object operator tokens
4059
4077
- PHP tokenizer no longer converts class/function names to special tokens types
4060
4078
- Class/function names such as parent and true would become special tokens such as T_PARENT and T_TRUE
4061
- - PHPCS can now exit with 0 if only warnings were found (request #262 )
4079
+ - PHPCS can now exit with 0 if only warnings were found (request [ #262 ] [ sq-262 ] )
4062
4080
- Set the ignore_warnings_on_exit config variable to 1 to set this behaviour
4063
4081
- Default remains at exiting with 0 only if no errors and no warnings were found
4064
4082
- Also changes return value of PHP_CodeSniffer_Reporting::printReport()
4065
4083
- Rulesets can now set associative array properties
4066
4084
- property name="[ property] " type="array" value="foo=>bar,baz=>qux"
4067
- - Generic ForbiddenFunctionsSniff now has a public property called forbiddenFunctions (request #263 )
4085
+ - Generic ForbiddenFunctionsSniff now has a public property called forbiddenFunctions (request [ #263 ] [ sq-263 ] )
4068
4086
- Override the property in a ruleset.xml file to define forbidden functions and their replacements
4069
4087
- A replacement of NULL indicates that no replacement is available
4070
4088
- e.g., value="delete=>unset,print=>echo,create_function=>null"
@@ -4076,14 +4094,14 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4076
4094
- If 2 sniffs look to be conflicting, one change will be ignored to allow a fix to occur
4077
4095
- Generic CamelCapsFunctionNameSniff now ignores a single leading underscore
4078
4096
- Thanks to [ Alex Slobodiskiy] [ @xt99 ] for the patch
4079
- - Standards can now be located within hidden directories (further fix for bug #20323 )
4097
+ - Standards can now be located within hidden directories (further fix for bug [ #20323 ] [ pear-20323 ] )
4080
4098
- Thanks to [ Klaus Purer] [ @klausi ] for the patch
4081
4099
- Sniff ignore patterns now replace Win dir separators like file ignore patterns already did
4082
4100
- Exclude patterns now use backtick delimiters, allowing all special characters to work correctly again
4083
4101
- Thanks to [ Jeremy Edgell] [ @jedgell ] for the patch
4084
4102
- Errors converted to warnings in a ruleset (and vice versa) now retain their fixable status
4085
4103
- Thanks to [ Alexander Obuhovich] [ @aik099 ] for the patch
4086
- - Squiz ConcatenationSpacingSniff now has a setting to specify how many spaces there should around concat operators
4104
+ - Squiz ConcatenationSpacingSniff now has a setting to specify how many spaces there should be around concat operators
4087
4105
- Default remains at 0
4088
4106
- Override the "spacing" setting in a ruleset.xml file to change
4089
4107
- Added auto-fixes for Squiz InlineCommentSniff
@@ -4101,15 +4119,29 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
4101
4119
- Generic UpperCaseConstantSniff and LowerCaseConstantSniff now ignore function names
4102
4120
4103
4121
### Fixed
4104
- - Fixed bug #243 : Missing DocBlock not detected
4105
- - Fixed bug #248 : FunctionCommentSniff expects ampersand on param name
4106
- - Fixed bug #265 : False positives with type hints in ForbiddenFunctionsSniff
4107
- - Fixed bug #20373 : Inline comment sniff tab handling way
4108
- - Fixed bug #20377 : Error when trying to execute phpcs with report=json
4109
- - Fixed bug #20378 : Report appended to existing file if no errors found in run
4110
- - Fixed bug #20381 : Invalid "Comment closer must be on a new line"
4122
+ - Fixed bug [ #243 ] [ sq-243 ] : Missing DocBlock not detected
4123
+ - Fixed bug [ #248 ] [ sq-248 ] : FunctionCommentSniff expects ampersand on param name
4124
+ - Fixed bug [ #265 ] [ sq-265 ] : False positives with type hints in ForbiddenFunctionsSniff
4125
+ - Fixed bug [ #20373 ] [ pear-20373 ] : Inline comment sniff tab handling way
4126
+ - Fixed bug [ #20377 ] [ pear-20377 ] : Error when trying to execute phpcs with report=json
4127
+ - Fixed bug [ #20378 ] [ pear-20378 ] : Report appended to existing file if no errors found in run
4128
+ - Fixed bug [ #20381 ] [ pear-20381 ] : Invalid "Comment closer must be on a new line"
4111
4129
- Thanks to [ Brad Kent] [ @bkdotcom ] for the patch
4112
- - Fixed bug #20402 : SVN pre-commit hook fails due to unknown argument error
4130
+ - Fixed bug [ #20402 ] [ pear-20402 ] : SVN pre-commit hook fails due to unknown argument error
4131
+
4132
+ [ sq-243 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/243
4133
+ [ sq-248 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/248
4134
+ [ sq-252 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/252
4135
+ [ sq-262 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/262
4136
+ [ sq-263 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/263
4137
+ [ sq-265 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/265
4138
+ [ pear-19899 ] : https://pear.php.net/bugs/bug.php?id=19899
4139
+ [ pear-20323 ] : https://pear.php.net/bugs/bug.php?id=20323
4140
+ [ pear-20373 ] : https://pear.php.net/bugs/bug.php?id=20373
4141
+ [ pear-20377 ] : https://pear.php.net/bugs/bug.php?id=20377
4142
+ [ pear-20378 ] : https://pear.php.net/bugs/bug.php?id=20378
4143
+ [ pear-20381 ] : https://pear.php.net/bugs/bug.php?id=20381
4144
+ [ pear-20402 ] : https://pear.php.net/bugs/bug.php?id=20402
4113
4145
4114
4146
## [ 1.5.5] - 2014-09-25
4115
4147
### Changed
0 commit comments