@@ -1757,11 +1757,15 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1757
1757
- Thanks to [ Nick Wilde] [ @NickDickinsonWilde ] for the patch
1758
1758
1759
1759
### Fixed
1760
- - Fixed bug #1496 : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
1760
+ - Fixed bug [ #1496 ] : Squiz.Strings.DoubleQuoteUsage not unescaping dollar sign when fixing
1761
1761
- Thanks to [ Michał Bundyra] [ @michalbundyra ] for the patch
1762
- - Fixed bug #1549 : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
1762
+ - Fixed bug [ #1549 ] : Squiz.PHP.EmbeddedPhp fixer conflict with // comment before PHP close tag
1763
1763
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1764
- - Fixed bug #1890 : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
1764
+ - Fixed bug [ #1890 ] : Incorrect Squiz.WhiteSpace.ControlStructureSpacing.NoLineAfterClose error between catch and finally statements
1765
+
1766
+ [ #1496 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1496
1767
+ [ #1549 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1549
1768
+ [ #1890 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1890
1765
1769
1766
1770
## [ 3.3.2] - 2018-09-24
1767
1771
### Changed
@@ -1785,20 +1789,31 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1785
1789
### Fixed
1786
1790
- Fixed a problem where referencing a relative file path in a ruleset XML file could add unnecessary sniff exclusions
1787
1791
- This didn't actually exclude anything, but caused verbose output to list strange exclusion rules
1788
- - Fixed bug #2110 : Squiz.WhiteSpace.FunctionSpacing is removing indents from the start of functions when fixing
1792
+ - Fixed bug [ #2110 ] : Squiz.WhiteSpace.FunctionSpacing is removing indents from the start of functions when fixing
1789
1793
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1790
- - Fixed bug #2115 : Squiz.Commenting.VariableComment not checking var types when the @var line contains a comment
1791
- - Fixed bug #2120 : Tokenizer fails to match T_INLINE_ELSE when used after function call containing closure
1792
- - Fixed bug #2121 : Squiz.PHP.DisallowMultipleAssignments false positive in while loop conditions
1794
+ - Fixed bug [ #2115 ] : Squiz.Commenting.VariableComment not checking var types when the @var line contains a comment
1795
+ - Fixed bug [ #2120 ] : Tokenizer fails to match T_INLINE_ELSE when used after function call containing closure
1796
+ - Fixed bug [ #2121 ] : Squiz.PHP.DisallowMultipleAssignments false positive in while loop conditions
1793
1797
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1794
- - Fixed bug #2127 : File::findExtendedClassName() doesn't support nested classes
1798
+ - Fixed bug [ #2127 ] : File::findExtendedClassName() doesn't support nested classes
1795
1799
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1796
- - Fixed bug #2138 : Tokenizer detects wrong token for php ::class feature with spaces
1797
- - Fixed bug #2143 : PSR2.Namespaces.UseDeclaration does not properly fix "use function" and "use const" statements
1800
+ - Fixed bug [ #2138 ] : Tokenizer detects wrong token for php ::class feature with spaces
1801
+ - Fixed bug [ #2143 ] : PSR2.Namespaces.UseDeclaration does not properly fix "use function" and "use const" statements
1798
1802
- Thanks to [ Chris Wilkinson] [ @thewilkybarkid ] for the patch
1799
- - Fixed bug #2144 : Squiz.Arrays.ArrayDeclaration does incorrect align calculation in array with cyrillic keys
1800
- - Fixed bug #2146 : Zend.Files.ClosingTag removes closing tag from end of file without inserting a semicolon
1801
- - Fixed bug #2151 : XML schema not updated with the new array property syntax
1803
+ - Fixed bug [ #2144 ] : Squiz.Arrays.ArrayDeclaration does incorrect align calculation in array with cyrillic keys
1804
+ - Fixed bug [ #2146 ] : Zend.Files.ClosingTag removes closing tag from end of file without inserting a semicolon
1805
+ - Fixed bug [ #2151 ] : XML schema not updated with the new array property syntax
1806
+
1807
+ [ #2110 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2110
1808
+ [ #2115 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2115
1809
+ [ #2120 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2120
1810
+ [ #2121 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2121
1811
+ [ #2127 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2127
1812
+ [ #2138 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2138
1813
+ [ #2143 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2143
1814
+ [ #2144 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2144
1815
+ [ #2146 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2146
1816
+ [ #2151 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2151
1802
1817
1803
1818
## [ 3.3.1] - 2018-07-27
1804
1819
### Removed
@@ -1853,15 +1868,24 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
1853
1868
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1854
1869
1855
1870
### Fixed
1856
- - Fixed bug #2029 : Squiz.Scope.MemberVarScope throws fatal error when a property is found in an interface
1857
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1858
- - Fixed bug #2047 : PSR12.Classes.ClassInstantiation false positive when instantiating class from array index
1859
- - Fixed bug #2048 : GenericFormatting.MultipleStatementAlignment false positive when assigning values inside an array
1860
- - Fixed bug #2053 : PSR12.Classes.ClassInstantiation incorrectly fix when using member vars and some variable formats
1861
- - Fixed bug #2065 : Generic.ControlStructures.InlineControlStructure fixing fails when inline control structure contains closure
1862
- - Fixed bug #2072 : Squiz.Arrays.ArrayDeclaration throws NoComma error when array value is a shorthand IF statement
1863
- - Fixed bug #2082 : File with "defined() or define()" syntax triggers PSR1.Files.SideEffects.FoundWithSymbols
1864
- - Fixed bug #2095 : PSR2.Namespaces.NamespaceDeclaration does not handle namespaces defined over multiple lines
1871
+ - Fixed bug [ #2029 ] : Squiz.Scope.MemberVarScope throws fatal error when a property is found in an interface
1872
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
1873
+ - Fixed bug [ #2047 ] : PSR12.Classes.ClassInstantiation false positive when instantiating class from array index
1874
+ - Fixed bug [ #2048 ] : GenericFormatting.MultipleStatementAlignment false positive when assigning values inside an array
1875
+ - Fixed bug [ #2053 ] : PSR12.Classes.ClassInstantiation incorrectly fix when using member vars and some variable formats
1876
+ - Fixed bug [ #2065 ] : Generic.ControlStructures.InlineControlStructure fixing fails when inline control structure contains closure
1877
+ - Fixed bug [ #2072 ] : Squiz.Arrays.ArrayDeclaration throws NoComma error when array value is a shorthand IF statement
1878
+ - Fixed bug [ #2082 ] : File with "defined() or define()" syntax triggers PSR1.Files.SideEffects.FoundWithSymbols
1879
+ - Fixed bug [ #2095 ] : PSR2.Namespaces.NamespaceDeclaration does not handle namespaces defined over multiple lines
1880
+
1881
+ [ #2029 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2029
1882
+ [ #2047 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2047
1883
+ [ #2048 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2048
1884
+ [ #2053 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2053
1885
+ [ #2065 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2065
1886
+ [ #2072 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2072
1887
+ [ #2082 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2082
1888
+ [ #2095 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2095
1865
1889
1866
1890
## [ 3.3.0] - 2018-06-07
1867
1891
### Deprecated
@@ -2035,42 +2059,66 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
2035
2059
- If not set, the sniff will use whatever value is set for the existing 'spacing' property
2036
2060
2037
2061
### Fixed
2038
- - Fixed bug #1863 : File::findEndOfStatement() not working when passed a scope opener
2039
- - Fixed bug #1876 : PSR2.Namespaces.UseDeclaration not giving error for use statements before the namespace declaration
2062
+ - Fixed bug [ #1863 ] : File::findEndOfStatement() not working when passed a scope opener
2063
+ - Fixed bug [ #1876 ] : PSR2.Namespaces.UseDeclaration not giving error for use statements before the namespace declaration
2040
2064
- Adds a new PSR2.Namespaces.UseDeclaration.UseBeforeNamespace error message
2041
- - Fixed bug #1881 : Generic.Arrays.ArrayIndent is indenting sub-arrays incorrectly when comma not used after the last value
2042
- - Fixed bug #1882 : Conditional with missing braces confused by indirect variables
2043
- - Fixed bug #1915 : JS tokenizer fails to tokenize regular expression proceeded by boolean not operator
2044
- - Fixed bug #1920 : Directory exclude pattern improperly excludes files with names that start the same
2065
+ - Fixed bug [ #1881 ] : Generic.Arrays.ArrayIndent is indenting sub-arrays incorrectly when comma not used after the last value
2066
+ - Fixed bug [ #1882 ] : Conditional with missing braces confused by indirect variables
2067
+ - Fixed bug [ #1915 ] : JS tokenizer fails to tokenize regular expression proceeded by boolean not operator
2068
+ - Fixed bug [ #1920 ] : Directory exclude pattern improperly excludes files with names that start the same
2045
2069
- Thanks to [ Jeff Puckett] [ @jpuck ] for the patch
2046
- - Fixed bug #1922 : Equal sign alignment check broken when list syntax used before assignment operator
2047
- - Fixed bug #1925 : Generic.Formatting.MultipleStatementAlignment skipping assignments within closures
2048
- - Fixed bug #1931 : Generic opening brace placement sniffs do not correctly support function return types
2049
- - Fixed bug #1932 : Generic.ControlStructures.InlineControlStructure fixer moves new PHPCS annotations
2050
- - Fixed bug #1938 : Generic opening brace placement sniffs incorrectly move PHPCS annotations
2070
+ - Fixed bug [ #1922 ] : Equal sign alignment check broken when list syntax used before assignment operator
2071
+ - Fixed bug [ #1925 ] : Generic.Formatting.MultipleStatementAlignment skipping assignments within closures
2072
+ - Fixed bug [ #1931 ] : Generic opening brace placement sniffs do not correctly support function return types
2073
+ - Fixed bug [ #1932 ] : Generic.ControlStructures.InlineControlStructure fixer moves new PHPCS annotations
2074
+ - Fixed bug [ #1938 ] : Generic opening brace placement sniffs incorrectly move PHPCS annotations
2051
2075
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2052
- - Fixed bug #1939 : phpcs: set annotations do not cause the line they are on to be ignored
2076
+ - Fixed bug [ #1939 ] : phpcs: set annotations do not cause the line they are on to be ignored
2053
2077
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2054
- - Fixed bug #1949 : Squiz.PHP.DisallowMultipleAssignments false positive when using namespaces with static assignments
2055
- - Fixed bug #1959 : SquizMultiLineFunctionDeclaration error when param has trailing comment
2078
+ - Fixed bug [ #1949 ] : Squiz.PHP.DisallowMultipleAssignments false positive when using namespaces with static assignments
2079
+ - Fixed bug [ #1959 ] : SquizMultiLineFunctionDeclaration error when param has trailing comment
2056
2080
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2057
- - Fixed bug #1963 : Squiz.Scope.MemberVarScope does not work for multiline member declaration
2081
+ - Fixed bug [ #1963 ] : Squiz.Scope.MemberVarScope does not work for multiline member declaration
2058
2082
- Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2059
- - Fixed bug #1971 : Short array list syntax not correctly tokenized if short array is the first content in a file
2060
- - Fixed bug #1979 : Tokenizer does not change heredoc to nowdoc token if the start tag contains spaces
2061
- - Fixed bug #1982 : Squiz.Arrays.ArrayDeclaration fixer sometimes puts a comma in front of the last array value
2062
- - Fixed bug #1993 : PSR1/PSR2 not reporting or fixing short open tags
2063
- - Fixed bug #1996 : Custom report paths don't work on case-sensitive filesystems
2064
- - Fixed bug #2006 : Squiz.Functions.FunctionDeclarationArgumentSpacing fixer removes comment between parens when no args
2083
+ - Fixed bug [ #1971 ] : Short array list syntax not correctly tokenized if short array is the first content in a file
2084
+ - Fixed bug [ #1979 ] : Tokenizer does not change heredoc to nowdoc token if the start tag contains spaces
2085
+ - Fixed bug [ #1982 ] : Squiz.Arrays.ArrayDeclaration fixer sometimes puts a comma in front of the last array value
2086
+ - Fixed bug [ #1993 ] : PSR1/PSR2 not reporting or fixing short open tags
2087
+ - Fixed bug [ #1996 ] : Custom report paths don't work on case-sensitive filesystems
2088
+ - Fixed bug [ #2006 ] : Squiz.Functions.FunctionDeclarationArgumentSpacing fixer removes comment between parens when no args
2065
2089
- The SpacingAfterOpenHint error message has been removed
2066
- - It is replaced by the the existing SpacingAfterOpen message
2090
+ - It is replaced by the existing SpacingAfterOpen message
2067
2091
- The error message format for the SpacingAfterOpen and SpacingBeforeClose messages has been changed
2068
2092
- These used to contain 3 pieces of data, but now only contain 2
2069
2093
- If you have customised the error messages of this sniff, please review your ruleset after upgrading
2070
- - Fixed bug #2018 : Generic.Formatting.MultipleStatementAlignment does see PHP close tag as end of statement block
2071
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2072
- - Fixed bug #2027 : PEAR.NamingConventions.ValidFunctionName error when function name includes double underscore
2073
- - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2094
+ - Fixed bug [ #2018 ] : Generic.Formatting.MultipleStatementAlignment does see PHP close tag as end of statement block
2095
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2096
+ - Fixed bug [ #2027 ] : PEAR.NamingConventions.ValidFunctionName error when function name includes double underscore
2097
+ - Thanks to [ Juliette Reinders Folmer] [ @jrfnl ] for the patch
2098
+
2099
+ [ #1863 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1863
2100
+ [ #1876 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1876
2101
+ [ #1881 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1881
2102
+ [ #1882 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1882
2103
+ [ #1915 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1915
2104
+ [ #1920 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1920
2105
+ [ #1922 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1922
2106
+ [ #1925 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1925
2107
+ [ #1931 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1931
2108
+ [ #1932 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1932
2109
+ [ #1938 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1938
2110
+ [ #1939 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1939
2111
+ [ #1949 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1949
2112
+ [ #1959 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1959
2113
+ [ #1963 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1963
2114
+ [ #1971 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1971
2115
+ [ #1979 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/1979
2116
+ [ #1982 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1982
2117
+ [ #1993 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1993
2118
+ [ #1996 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/1996
2119
+ [ #2006 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2006
2120
+ [ #2018 ] : https://github.com/squizlabs/PHP_CodeSniffer/pull/2018
2121
+ [ #2027 ] : https://github.com/squizlabs/PHP_CodeSniffer/issues/2027
2074
2122
2075
2123
## [ 3.2.3] - 2018-02-21
2076
2124
### Changed
0 commit comments