You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+59-3
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,61 @@ The file documents changes to the PHP_CodeSniffer project.
6
6
7
7
_Nothing yet._
8
8
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.
- 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.
341
396
342
397
### Changed
343
398
- The following sniffs have received performance related improvements:
@@ -350,7 +405,7 @@ _Nothing yet._
350
405
- External standards with sniff tests using the PHP_CodeSniffer native test framework will also benefit from these changes.
351
406
- Thanks to [Juliette Reinders Folmer][@jrfnl] for the patch.
352
407
- 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.
354
409
355
410
### Fixed
356
411
- 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
0 commit comments