3.8.1 - 2024-01-11
Added
- Documentation has been added for the following sniffs:
- Generic.CodeAnalysis.EmptyPHPStatement
- Generic.Formatting.SpaceBeforeCast
- Generic.PHP.Syntax
- Generic.WhiteSpace.LanguageConstructSpacing
- PSR12.Classes.ClosingBrace
- PSR12.Classes.OpeningBraceSpace
- PSR12.ControlStructures.BooleanOperatorPlacement
- PSR12.Files.OpenTag
- Thanks to Rodrigo Primo and Denis Žoljom for the patches
Changed
- GitHub releases will now always only contain unversioned versions of the release assets (PHARS + asc files). See #205 for context.
- Thanks to Shivam Mathur for opening a discussion about this
- Various housekeeping, includes improvements to the tests and documentation
- Thanks to Dan Wallis, Lucas Hoffmann, Rodrigo Primo and Juliette Reinders Folmer for their contributions
Fixed
- Fixed bug #124 : Report Full : avoid unnecessarily wrapping lines when
-s
is used- Thanks to Brad Jorsch for the patch
- Fixed bug #124 : Report Full : fix incorrect bolding of pipes when
-s
is used and messages wraps- Thanks to Brad Jorsch for the patch
- Fixed bug #150 : Squiz.WhiteSpace.KeywordSpacing : prevent a PHP notice when run during live coding
- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #154 : Report Full : delimiter line calculation could go wonky on wide screens when a report contains multi-line messages
- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #178 : Squiz.Commenting.VariableComment : docblocks were incorrectly being flagged as missing when a property declaration used PHP native union/intersection type declarations
- Thanks to Ferdinand Kuhl for the patch
- Fixed bug #211 : Squiz.Commenting.VariableComment : docblocks were incorrectly being flagged as missing when a property declaration used PHP 8.2+ stand-alone
true
/false
/null
type declarations- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #211 : Squiz.Commenting.VariableComment : docblocks were incorrectly being flagged as missing when a property declaration used PHP native
parent
,self
or a namespace relative class name type declaration- Thanks to Juliette Reinders Folmer for the patch
- Fixed bug #226 : Generic.CodeAnalysis.ForLoopShouldBeWhileLoop : prevent a potential PHP 8.3 deprecation notice during live coding
- Thanks to Rodrigo Primo for the patch
New Contributors
The PHP_CodeSniffer project is happy to welcome the following new contributors:
@anomiex, @dingo-d, @fcool, @lucc, @rodrigoprimo
Statistics
Closed: 4 issues
Merged: 63 pull requests
If you like what you see, please consider funding the PHP_CodeSniffer project. If you already do so: thank you!