Changed
- Generic.ControlStructures.InlineControlStructure no longer unnecessarily listens for T_SWITCH tokens. #595
- Thanks to Rodrigo Primo for the patch.
- Squiz.Functions.FunctionDeclarationArgumentSpacing: improvements to error message for
SpaceBeforeComma
error. #783- Thanks to Juliette Reinders Folmer for the patch.
- The following sniff(s) have received efficiency improvements:
- Squiz.Functions.FunctionDeclarationArgumentSpacing
- Thanks to Dan Wallis and Juliette Reinders Folmer for the patches.
- Various housekeeping, including improvements to the tests and documentation.
- Thanks to Michał Bundyra, Rodrigo Primo and Juliette Reinders Folmer for their contributions.
Fixed
- Fixed bug #620 : Squiz.Functions.FunctionDeclarationArgumentSpacing: newlines after type will now be handled by the fixer. This also prevents a potential fixer conflict.
- Thanks to Dan Wallis for the patch.
- Fixed bug #782 : Tokenizer/PHP: prevent an "Undefined array key" notice during live coding for unfinished arrow functions.
- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after reference token was not flagged nor fixed.
- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line after variadic token was not flagged nor fixed.
- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: new line before/after the equal sign for default values was not flagged nor fixed when
equalsSpacing
was set to0
.- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer conflict when a new line is found before/after the equal sign for default values and
equalsSpacing
was set to1
.- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer for spacing before/after equal sign could inadvertently remove comment.
- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #783 : Squiz.Functions.FunctionDeclarationArgumentSpacing: fixer will now handle comments between the end of a parameter and a comma more cleanly.
- Thanks to Juliette Reinders Folmer for the patch.
- Fixed bug #784 : Squiz.WhiteSpace.FunctionSpacing: prevent fixer conflict when a multi-line docblock would start on the same line as the function close curly being examined.
- Thanks to Klaus Purer for the patch
Statistics
Closed: 0 issues
Merged: 14 pull requests
If you like to stay informed about releases and more, follow @phpcs on Mastodon or @PHP_CodeSniffer on X.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!