This release includes all improvements and bugfixes from PHP_CodeSniffer 4.0.0-beta1, 3.13.1 and 3.13.2.
Changed
- The error code
Squiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterVisbilityhas been changed toSquiz.Functions.FunctionDeclarationArgumentSpacing.SpacingAfterVisibility. #1136 - The following sniff(s) have received efficiency improvements:
- Generic.ControlStructures.InlineControlStructure #880
- Thanks to Rodrigo Primo for the patch.
Fixed
- Fixed bug #3889 : A selective
phpcs:enablecould sometimes override a later selectivephpcs:ignore.- Thanks to Brad Jorsch for the patch
- Fixed bug #1128 : missing 'parenthesis_owner' index for T_FUNCTION token on PHP < 7.4 when function is named "fn".
Other
- The GPG signature for the PHAR files has been rotated. The new fingerprint is: D91D86963AF3A29B6520462297B02DD8E5071466.
Calling all testers!
Please help by testing the RC release and reporting any issues you run into.
Upgrade guides for both ruleset maintainers/end-users, as well as for sniff developers and integrators, have been published to the Wiki to help smooth the transition.
Statistics
Closed: 2 issues
Merged: 4 pull requests
Follow @phpcs on Mastodon or @PHP_CodeSniffer on X to stay informed.
Please consider funding the PHP_CodeSniffer project. If you already do so: thank you!