Skip to content

Commit eda7a1b

Browse files
committed
Add links to all issues in the 2.6.2, 2.6.1, 2.6.0 sections of the changelog
Also fixes a typo.
1 parent e724c77 commit eda7a1b

File tree

1 file changed

+120
-59
lines changed

1 file changed

+120
-59
lines changed

CHANGELOG.md

+120-59
Original file line numberDiff line numberDiff line change
@@ -3115,36 +3115,55 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
31153115

31163116
## [2.6.2] - 2016-07-14
31173117
### Changed
3118-
- Added a new --exclude CLI argument to exclude a list of sniffs from checking and fixing (request #904)
3118+
- Added a new --exclude CLI argument to exclude a list of sniffs from checking and fixing (request [#904])
31193119
- Accepts the same sniff codes as the --sniffs command line argument, but provides the opposite functionality
3120-
- Added a new -q command line argument to disable progress and verbose information from being printed (request #969)
3120+
- Added a new -q command line argument to disable progress and verbose information from being printed (request [#969])
31213121
- Useful if a coding standard hard-codes progress or verbose output but you want PHPCS to be quiet
31223122
- Use the command "phpcs --config-set quiet true" to turn quiet mode on by default
3123-
- Generic LineLength sniff no longer errors for comments that cannot be broken out onto a new line (request #766)
3123+
- Generic LineLength sniff no longer errors for comments that cannot be broken out onto a new line (request [#766])
31243124
- A typical case is a comment that contains a very long URL
3125-
- The comment is ignored if putting the URL on a indented new comment line would be longer than the allowed length
3125+
- The comment is ignored if putting the URL on an indented new comment line would be longer than the allowed length
31263126
- Settings extensions in a ruleset no longer causes PHP notices during unit testing
31273127
- Thanks to [Klaus Purer][@klausi] for the patch
31283128
- Version control reports now show which errors are fixable if you are showing sources
3129-
- Added a new sniff to enforce a single space after a NOT operator (request #1051)
3129+
- Added a new sniff to enforce a single space after a NOT operator (request [#1051])
31303130
- Include in a ruleset using the code Generic.Formatting.SpaceAfterNot
3131-
- The Squiz.Commenting.BlockComment sniff now supports tabs for indenting comment lines (request #1056)
3131+
- The Squiz.Commenting.BlockComment sniff now supports tabs for indenting comment lines (request [#1056])
31323132

31333133
### Fixed
3134-
- Fixed bug #790 : Incorrect missing @throws error in methods that use closures
3135-
- Fixed bug #908 : PSR2 standard is not checking that closing brace is on line following the body
3136-
- Fixed bug #945 : Incorrect indent behavior using deep-nested function and arrays
3137-
- Fixed bug #961 : Two anonymous functions passed as function/method arguments cause indentation false positive
3138-
- Fixed bug #1005 : Using global composer vendor autoload breaks PHP lowercase built-in function sniff
3134+
- Fixed bug [#790] : Incorrect missing @throws error in methods that use closures
3135+
- Fixed bug [#908] : PSR2 standard is not checking that closing brace is on line following the body
3136+
- Fixed bug [#945] : Incorrect indent behavior using deep-nested function and arrays
3137+
- Fixed bug [#961] : Two anonymous functions passed as function/method arguments cause indentation false positive
3138+
- Fixed bug [#1005] : Using global composer vendor autoload breaks PHP lowercase built-in function sniff
31393139
- Thanks to [Michael Butler][@michaelbutler] for the patch
3140-
- Fixed bug #1007 : Squiz Unreachable code detection is not working properly with a closure inside a case
3141-
- Fixed bug #1023 : PSR2.Classes.ClassDeclaration fails if class extends base class and "implements" is on trailing line
3142-
- Fixed bug #1026 : Arrays in comma delimited class properties cause ScopeIndent to increase indent
3143-
- Fixed bug #1028 : Squiz ArrayDeclaration incorrectly fixes multi-line array where end bracket is not on a new line
3144-
- Fixed bug #1034 : Squiz FunctionDeclarationArgumentSpacing gives incorrect error when first arg is a variadic
3145-
- Fixed bug #1036 : Adjacent assignments aligned analysis statement wrong
3146-
- Fixed bug #1049 : Version control reports can show notices when the report width is very small
3147-
- Fixed bug #21050 : PEAR MultiLineCondition sniff suppresses errors on last condition line
3140+
- Fixed bug [#1007] : Squiz Unreachable code detection is not working properly with a closure inside a case
3141+
- Fixed bug [#1023] : PSR2.Classes.ClassDeclaration fails if class extends base class and "implements" is on trailing line
3142+
- Fixed bug [#1026] : Arrays in comma delimited class properties cause ScopeIndent to increase indent
3143+
- Fixed bug [#1028] : Squiz ArrayDeclaration incorrectly fixes multi-line array where end bracket is not on a new line
3144+
- Fixed bug [#1034] : Squiz FunctionDeclarationArgumentSpacing gives incorrect error when first arg is a variadic
3145+
- Fixed bug [#1036] : Adjacent assignments aligned analysis statement wrong
3146+
- Fixed bug [#1049] : Version control reports can show notices when the report width is very small
3147+
- Fixed bug [#21050] : PEAR MultiLineCondition sniff suppresses errors on last condition line
3148+
3149+
[#766]: https://github.com/squizlabs/PHP_CodeSniffer/issues/766
3150+
[#790]: https://github.com/squizlabs/PHP_CodeSniffer/issues/790
3151+
[#904]: https://github.com/squizlabs/PHP_CodeSniffer/issues/904
3152+
[#908]: https://github.com/squizlabs/PHP_CodeSniffer/issues/908
3153+
[#945]: https://github.com/squizlabs/PHP_CodeSniffer/issues/945
3154+
[#961]: https://github.com/squizlabs/PHP_CodeSniffer/issues/961
3155+
[#969]: https://github.com/squizlabs/PHP_CodeSniffer/issues/969
3156+
[#1005]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1005
3157+
[#1007]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1007
3158+
[#1023]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1023
3159+
[#1026]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1026
3160+
[#1028]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1028
3161+
[#1034]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1034
3162+
[#1036]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1036
3163+
[#1049]: https://github.com/squizlabs/PHP_CodeSniffer/pull/1049
3164+
[#1051]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1051
3165+
[#1056]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1056
3166+
[#21050]: https://pear.php.net/bugs/bug.php?id=21050
31483167

31493168
## [2.6.1] - 2016-05-31
31503169
### Changed
@@ -3153,43 +3172,60 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
31533172
- Thanks to [Jaroslav Hanslík][@kukulich] for the patch
31543173
- The default_standard config setting now allows multiple standards to be listed, like on the command line
31553174
- Thanks to [Michael Mayer][@schnittstabil] for the patch
3156-
- Installations done via composer now only include the composer autoloader for PHP 5.3.2+ (request #942)
3175+
- Installations done via composer now only include the composer autoloader for PHP 5.3.2+ (request [#942])
31573176
- Added a rollbackChangeset() method to the Fixer class to purposely rollback the active changeset
31583177

31593178
### Fixed
3160-
- Fixed bug #940 : Auto-fixing issue encountered with inconsistent use of braces
3161-
- Fixed bug #943 : Squiz.PHP.InnerFunctions.NotAllowed reported in anonymous classes
3162-
- Fixed bug #944 : PHP warning when running the latest phar
3163-
- Fixed bug #951 : InlineIfDeclaration: invalid error produced with UTF-8 string
3164-
- Fixed bug #957 : Operator spacing sniff errors when plus is used as part of a number
3179+
- Fixed bug [#940] : Auto-fixing issue encountered with inconsistent use of braces
3180+
- Fixed bug [#943] : Squiz.PHP.InnerFunctions.NotAllowed reported in anonymous classes
3181+
- Fixed bug [#944] : PHP warning when running the latest phar
3182+
- Fixed bug [#951] : InlineIfDeclaration: invalid error produced with UTF-8 string
3183+
- Fixed bug [#957] : Operator spacing sniff errors when plus is used as part of a number
31653184
- Thanks to [Klaus Purer][@klausi] for the patch
3166-
- Fixed bug #959 : Call-time pass-by-reference false positive if there is a square bracket before the ampersand
3185+
- Fixed bug [#959] : Call-time pass-by-reference false positive if there is a square bracket before the ampersand
31673186
- Thanks to [Konstantin Leboev][@realmfoo] for the patch
3168-
- Fixed bug #962 : Null coalescing operator (??) not detected as a token
3187+
- Fixed bug [#962] : Null coalescing operator (??) not detected as a token
31693188
- Thanks to [Joel Posti][@joelposti] for the patch
3170-
- Fixed bug #973 : Anonymous class declaration and PSR1.Files.SideEffects.FoundWithSymbols
3171-
- Fixed bug #974 : Error when file ends with "function"
3172-
- Fixed bug #979 : Anonymous function with return type hint is not refactored as expected
3173-
- Fixed bug #983 : Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock
3174-
- Fixed bug #1010 : Squiz NonExecutableCode sniff does not detect boolean OR
3189+
- Fixed bug [#973] : Anonymous class declaration and PSR1.Files.SideEffects.FoundWithSymbols
3190+
- Fixed bug [#974] : Error when file ends with "function"
3191+
- Fixed bug [#979] : Anonymous function with return type hint is not refactored as expected
3192+
- Fixed bug [#983] : Squiz.WhiteSpace.MemberVarSpacing.AfterComment fails to fix error when comment is not a docblock
3193+
- Fixed bug [#1010] : Squiz NonExecutableCode sniff does not detect boolean OR
31753194
- Thanks to [Derek Henderson][@2shediac] for the patch
3176-
- Fixed bug #1015 : The Squiz.Commenting.FunctionComment sniff doesn't allow description in @return tag
3195+
- Fixed bug [#1015] : The Squiz.Commenting.FunctionComment sniff doesn't allow description in @return tag
31773196
- Thanks to [Alexander Obuhovich][@aik099] for the patch
3178-
- Fixed bug #1022 : Duplicate spaces after opening bracket error with PSR2 standard
3179-
- Fixed bug #1025 : Syntax error in JS file can cause undefined index for parenthesis_closer
3197+
- Fixed bug [#1022] : Duplicate spaces after opening bracket error with PSR2 standard
3198+
- Fixed bug [#1025] : Syntax error in JS file can cause undefined index for parenthesis_closer
3199+
3200+
[#940]: https://github.com/squizlabs/PHP_CodeSniffer/issues/940
3201+
[#942]: https://github.com/squizlabs/PHP_CodeSniffer/issues/942
3202+
[#943]: https://github.com/squizlabs/PHP_CodeSniffer/issues/943
3203+
[#944]: https://github.com/squizlabs/PHP_CodeSniffer/issues/944
3204+
[#951]: https://github.com/squizlabs/PHP_CodeSniffer/issues/951
3205+
[#957]: https://github.com/squizlabs/PHP_CodeSniffer/pull/957
3206+
[#959]: https://github.com/squizlabs/PHP_CodeSniffer/issues/959
3207+
[#962]: https://github.com/squizlabs/PHP_CodeSniffer/issues/962
3208+
[#973]: https://github.com/squizlabs/PHP_CodeSniffer/issues/973
3209+
[#974]: https://github.com/squizlabs/PHP_CodeSniffer/issues/974
3210+
[#979]: https://github.com/squizlabs/PHP_CodeSniffer/issues/979
3211+
[#983]: https://github.com/squizlabs/PHP_CodeSniffer/issues/983
3212+
[#1010]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1010
3213+
[#1015]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1015
3214+
[#1022]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1022
3215+
[#1025]: https://github.com/squizlabs/PHP_CodeSniffer/issues/1025
31803216

31813217
## [2.6.0] - 2016-04-04
31823218
### Changed
3183-
- Paths used when setting CLI arguments inside ruleset.xml files are now relative to the ruleset location (request #847)
3219+
- Paths used when setting CLI arguments inside ruleset.xml files are now relative to the ruleset location (request [#847])
31843220
- This change only applies to paths within ARG tags, used to set CLI arguments
31853221
- Previously, the paths were relative to the directory PHPCS was being run from
31863222
- Absolute paths are still allowed and work the same way they always have
31873223
- This change allows ruleset.xml files to be more portable
31883224
- Content passed via STDIN will now be processed even if files are specified on the command line or in a ruleset
3189-
- When passing content via STDIN, you can now specify the file path to use on the command line (request #934)
3225+
- When passing content via STDIN, you can now specify the file path to use on the command line (request [#934])
31903226
- This allows sniffs that check file paths to work correctly
31913227
- This is the same functionality provided by the phpcs_input_file line, except it is available on the command line
3192-
- Files processed with custom tokenizers will no longer be skipped if they appear minified (request #877)
3228+
- Files processed with custom tokenizers will no longer be skipped if they appear minified (request [#877])
31933229
- If the custom tokenizer wants minified files skipped, it can set a $skipMinified member var to TRUE
31943230
- See the included JS and CSS tokenizers for an example
31953231
- Config vars set in ruleset.xml files are now processed earlier, allowing them to be used during sniff registration
@@ -3200,12 +3236,12 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
32003236
- You can still manually set php_path to use a specific binary for testing
32013237
- Thanks to [Andrew Berry][@deviantintegral] for the patch
32023238
- The PHP-supplied T_POW_EQUAL token has been replicated for PHP versions before 5.6
3203-
- Added support for PHP7 use group declarations (request #878)
3239+
- Added support for PHP7 use group declarations (request [#878])
32043240
- New tokens T_OPEN_USE_GROUP and T_CLOSE_USE_GROUP are assigned to the open and close curly braces
3205-
- Generic ScopeIndent sniff now reports errors for every line that needs the indent changed (request #903)
3241+
- Generic ScopeIndent sniff now reports errors for every line that needs the indent changed (request [#903])
32063242
- Previously, it ignored lines that were indented correctly in the context of their block
32073243
- This change produces more technically accurate error messages, but is much more verbose
3208-
- The PSR2 and Squiz standards now allow multi-line default values in function declarations (request #542)
3244+
- The PSR2 and Squiz standards now allow multi-line default values in function declarations (request [#542])
32093245
- Previously, these would automatically make the function a multi-line declaration
32103246
- Squiz InlineCommentSniff now allows docblocks on require(_once) and include(_once) statements
32113247
- Thanks to [Gary Jones][@GaryJones] for the patch
@@ -3217,31 +3253,56 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
32173253
- Renamed Squiz.CSS.Opacity.SpacingAfterPoint to Squiz.CSS.Opacity.DecimalPrecision
32183254
- Please update your ruleset if you are referencing this error code directly
32193255
- Fixed PHP tokenizer problem that caused an infinite loop when checking a comment with specific content
3220-
- Generic Disallow Space and Tab indent sniffs now detect and fix indents inside embedded HTML chunks (request #882)
3256+
- Generic Disallow Space and Tab indent sniffs now detect and fix indents inside embedded HTML chunks (request [#882])
32213257
- Squiz CSS IndentationSniff no longer assumes the class opening brace is at the end of a line
32223258
- Squiz FunctionCommentThrowTagSniff now ignores non-docblock comments
32233259
- Squiz ComparisonOperatorUsageSniff now allows conditions like while(true)
32243260
- PEAR FunctionCallSignatureSniff (and the Squiz and PSR2 sniffs that use it) now correctly check the first argument
3225-
- Further fix for bug #698
3261+
- Further fix for bug [#698]
32263262

32273263
### Fixed
3228-
- Fixed bug #791 : codingStandardsChangeSetting settings not working with namespaces
3229-
- Fixed bug #872 : Incorrect detection of blank lines between CSS class names
3230-
- Fixed bug #879 : Generic InlineControlStructureSniff can create parse error when case/if/elseif/else have mixed brace and braceless definitions
3231-
- Fixed bug #883 : PSR2 is not checking for blank lines at the start and end of control structures
3232-
- Fixed bug #884 : Incorrect indentation notice for anonymous classes
3233-
- Fixed bug #887 : Using curly braces for a shared CASE/DEFAULT statement can generate an error in PSR2 SwitchDeclaration
3234-
- Fixed bug #889 : Closure inside catch/else/elseif causes indentation error
3235-
- Fixed bug #890 : Function call inside returned short array value can cause indentation error inside CASE statements
3236-
- Fixed bug #897 : Generic.Functions.CallTimePassByReference.NotAllowed false positive when short array syntax
3237-
- Fixed bug #900 : Squiz.Functions.FunctionDeclarationArgumentSpacing bug when no space between type hint and argument
3238-
- Fixed bug #902 : T_OR_EQUAL and T_POW_EQUAL are not seen as assignment tokens
3239-
- Fixed bug #910 : Unrecognized "extends" and indentation on anonymous classes
3240-
- Fixed bug #915 : JS Tokenizer generates errors when processing some decimals
3241-
- Fixed bug #928 : Endless loop when sniffing a PHP file with a git merge conflict inside a function
3242-
- Fixed bug #937 : Shebang can cause PSR1 SideEffects warning
3264+
- Fixed bug [#791] : codingStandardsChangeSetting settings not working with namespaces
3265+
- Fixed bug [#872] : Incorrect detection of blank lines between CSS class names
3266+
- Fixed bug [#879] : Generic InlineControlStructureSniff can create parse error when case/if/elseif/else have mixed brace and braceless definitions
3267+
- Fixed bug [#883] : PSR2 is not checking for blank lines at the start and end of control structures
3268+
- Fixed bug [#884] : Incorrect indentation notice for anonymous classes
3269+
- Fixed bug [#887] : Using curly braces for a shared CASE/DEFAULT statement can generate an error in PSR2 SwitchDeclaration
3270+
- Fixed bug [#889] : Closure inside catch/else/elseif causes indentation error
3271+
- Fixed bug [#890] : Function call inside returned short array value can cause indentation error inside CASE statements
3272+
- Fixed bug [#897] : Generic.Functions.CallTimePassByReference.NotAllowed false positive when short array syntax
3273+
- Fixed bug [#900] : Squiz.Functions.FunctionDeclarationArgumentSpacing bug when no space between type hint and argument
3274+
- Fixed bug [#902] : T_OR_EQUAL and T_POW_EQUAL are not seen as assignment tokens
3275+
- Fixed bug [#910] : Unrecognized "extends" and indentation on anonymous classes
3276+
- Fixed bug [#915] : JS Tokenizer generates errors when processing some decimals
3277+
- Fixed bug [#928] : Endless loop when sniffing a PHP file with a git merge conflict inside a function
3278+
- Fixed bug [#937] : Shebang can cause PSR1 SideEffects warning
32433279
- Thanks to [Clay Loveless][@claylo] for the patch
3244-
- Fixed bug #938 : CallTimePassByReferenceSniff ignores functions with return value
3280+
- Fixed bug [#938] : CallTimePassByReferenceSniff ignores functions with return value
3281+
3282+
[#542]: https://github.com/squizlabs/PHP_CodeSniffer/issues/542
3283+
[#698]: https://github.com/squizlabs/PHP_CodeSniffer/issues/698
3284+
[#791]: https://github.com/squizlabs/PHP_CodeSniffer/issues/791
3285+
[#847]: https://github.com/squizlabs/PHP_CodeSniffer/issues/847
3286+
[#872]: https://github.com/squizlabs/PHP_CodeSniffer/issues/872
3287+
[#877]: https://github.com/squizlabs/PHP_CodeSniffer/issues/877
3288+
[#878]: https://github.com/squizlabs/PHP_CodeSniffer/issues/878
3289+
[#879]: https://github.com/squizlabs/PHP_CodeSniffer/issues/879
3290+
[#882]: https://github.com/squizlabs/PHP_CodeSniffer/issues/882
3291+
[#883]: https://github.com/squizlabs/PHP_CodeSniffer/issues/883
3292+
[#884]: https://github.com/squizlabs/PHP_CodeSniffer/issues/884
3293+
[#887]: https://github.com/squizlabs/PHP_CodeSniffer/issues/887
3294+
[#889]: https://github.com/squizlabs/PHP_CodeSniffer/issues/889
3295+
[#890]: https://github.com/squizlabs/PHP_CodeSniffer/issues/890
3296+
[#897]: https://github.com/squizlabs/PHP_CodeSniffer/issues/897
3297+
[#900]: https://github.com/squizlabs/PHP_CodeSniffer/issues/900
3298+
[#902]: https://github.com/squizlabs/PHP_CodeSniffer/issues/902
3299+
[#903]: https://github.com/squizlabs/PHP_CodeSniffer/issues/903
3300+
[#910]: https://github.com/squizlabs/PHP_CodeSniffer/issues/910
3301+
[#915]: https://github.com/squizlabs/PHP_CodeSniffer/issues/915
3302+
[#928]: https://github.com/squizlabs/PHP_CodeSniffer/issues/928
3303+
[#934]: https://github.com/squizlabs/PHP_CodeSniffer/issues/934
3304+
[#937]: https://github.com/squizlabs/PHP_CodeSniffer/pull/937
3305+
[#938]: https://github.com/squizlabs/PHP_CodeSniffer/issues/938
32453306

32463307
## [2.5.1] - 2016-01-20
32473308
### Changed

0 commit comments

Comments
 (0)