Skip to content

Commit 644fc29

Browse files
committedDec 11, 2024··
Changelog for the 3.11.2 release
For release this Wednesday (or earlier).
1 parent 3a44d3d commit 644fc29

File tree

1 file changed

+59
-3
lines changed

1 file changed

+59
-3
lines changed
 

‎CHANGELOG.md

+59-3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,61 @@ The file documents changes to the PHP_CodeSniffer project.
66

77
_Nothing yet._
88

9+
## [3.11.2] - 2024-12-11
10+
11+
### Changed
12+
- Generators/HTML + Markdown: the output will now be empty (no page header/footer) when there are no docs to display. [#687]
13+
- This is in line with the Text Generator which already didn't produce output if there are no docs.
14+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
15+
- Generators/HTML: only display a Table of Contents when there is more than one sniff with documentation. [#697]
16+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
17+
- Generators/HTML: improved handling of line breaks in `<standard>` blocks. [#723]
18+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
19+
- Generators/Markdown: improved compatibility with the variety of available markdown parsers. [#722]
20+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
21+
- Generators/Markdown: improved handling of line breaks in `<standard>` blocks. [#737]
22+
- This prevents additional paragraphs from being displayed as code blocks.
23+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
24+
- Generic.NamingConventions.UpperCaseConstantName: the exact token containing the non-uppercase constant name will now be identified with more accuracy. [#665]
25+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
26+
- Generic.Functions.OpeningFunctionBraceKernighanRitchie: minor improvement to the error message wording. [#736]
27+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
28+
- Various housekeeping, including improvements to the tests and documentation.
29+
- Thanks to [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
30+
31+
### Fixed
32+
- Fixed bug [#527] : Squiz.Arrays.ArrayDeclaration: short lists within a foreach condition should be ignored.
33+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
34+
- Fixed bug [#665] : Generic.NamingConventions.UpperCaseConstantName: false positives and false negatives when code uses unconventional spacing and comments when calling `define()`.
35+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
36+
- Fixed bug [#665] : Generic.NamingConventions.UpperCaseConstantName: false positive when a constant named `DEFINE` is encountered.
37+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
38+
- Fixed bug [#665] : Generic.NamingConventions.UpperCaseConstantName: false positive for attribute class called `define`.
39+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
40+
- Fixed bug [#665] : Generic.NamingConventions.UpperCaseConstantName: false positive when handling the instantiation of a class named `define`.
41+
- Thanks to [Rodrigo Primo][@rodrigoprimo] for the patch.
42+
- Fixed bug [#688] : Generators/Markdown could leave error_reporting in an incorrect state.
43+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
44+
- Fixed bug [#698] : Generators/Markdown : link in the documentation footer would not parse as a link.
45+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
46+
- Fixed bug [#738] : Generators/Text: stray blank lines after code sample titles.
47+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
48+
- Fixed bug [#739] : Generators/HTML + Markdown: multi-space whitespace within a code sample title was folded into a single space.
49+
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
50+
51+
[#527]: https://github.com/PHPCSStandards/PHP_CodeSniffer/issues/527
52+
[#665]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/665
53+
[#687]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/687
54+
[#688]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/688
55+
[#697]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/697
56+
[#698]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/698
57+
[#722]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/722
58+
[#723]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/723
59+
[#736]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/736
60+
[#737]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/737
61+
[#738]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/738
62+
[#739]: https://github.com/PHPCSStandards/PHP_CodeSniffer/pull/739
63+
964
## [3.11.1] - 2024-11-16
1065

1166
### Changed
@@ -337,7 +392,7 @@ _Nothing yet._
337392
- Squiz.WhiteSpace.MemberVarSpacing
338393
- Squiz.WhiteSpace.ScopeClosingBrace
339394
- Squiz.WhiteSpace.SuperfluousWhitespace
340-
- Thanks to [Jay McPartland][@jonmcp] and [Rodrigo Primo][@rodrigoprimo] for the patches.
395+
- Thanks to [Jay McPartland][@jaymcp] and [Rodrigo Primo][@rodrigoprimo] for the patches.
341396

342397
### Changed
343398
- The following sniffs have received performance related improvements:
@@ -350,7 +405,7 @@ _Nothing yet._
350405
- External standards with sniff tests using the PHP_CodeSniffer native test framework will also benefit from these changes.
351406
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
352407
- Various housekeeping, including improvements to the tests and documentation.
353-
- Thanks to [Jay McPartland][@jonmcp], [João Pedro Oliveira][@jpoliveira08], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
408+
- Thanks to [Jay McPartland][@jaymcp], [João Pedro Oliveira][@jpoliveira08], [Rodrigo Primo][@rodrigoprimo] and [Juliette Reinders Folmer][@jrfnl] for their contributions.
354409

355410
### Fixed
356411
- Fixed bug [#289] : Squiz.WhiteSpace.OperatorSpacing and PSR12.Operators.OperatorSpacing : improved fixer conflict protection by more strenuously avoiding handling operators in declare statements.
@@ -7152,6 +7207,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
71527207
-->
71537208

71547209
[Unreleased]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/master...HEAD
7210+
[3.11.2]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.1...3.11.2
71557211
[3.11.1]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.11.0...3.11.1
71567212
[3.11.0]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.10.3...3.11.0
71577213
[3.10.3]: https://github.com/PHPCSStandards/PHP_CodeSniffer/compare/3.10.2...3.10.3
@@ -7350,6 +7406,7 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
73507406
[@ivuorinen]: https://github.com/ivuorinen
73517407
[@jasonmccreary]: https://github.com/jasonmccreary
73527408
[@javer]: https://github.com/javer
7409+
[@jaymcp]: https://github.com/jaymcp
73537410
[@JDGrimes]: https://github.com/JDGrimes
73547411
[@jedgell]: https://github.com/jedgell
73557412
[@jeffslofish]: https://github.com/jeffslofish
@@ -7360,7 +7417,6 @@ Additionally, thanks to [Alexander Turek][@derrabus] for consulting on the repo
73607417
[@johanderuijter]: https://github.com/johanderuijter
73617418
[@johnmaguire]: https://github.com/johnmaguire
73627419
[@johnpbloch]: https://github.com/johnpbloch
7363-
[@jonmcp]: https://github.com/jonmcp
73647420
[@JorisDebonnet]: https://github.com/JorisDebonnet
73657421
[@josephzidell]: https://github.com/josephzidell
73667422
[@joshdavis11]: https://github.com/joshdavis11

0 commit comments

Comments
 (0)
Please sign in to comment.