cakephp/cakephp-codesniffer
CakePHP coding standard for PHP_CodeSniffer. Fully PSR-12 compliant plus additional CakePHP-specific sniffs and fixers. Install via Composer and run phpcs with --standard=CakePHP (or use a phpcs.xml) to check and auto-fix your code.
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.3.0...5.3.1
Updated to use PHP_CodeSniffer 4.0.
Potentially breaking change: If you get an error about missing sniffs, you should remove the installed_paths config from your phpcs config file.
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.2.2...5.3.0
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/4.7.0...4.7.1
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.2.1...5.2.2
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.2.0...5.2.1
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.1.4...5.2.0
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.1.3...5.1.4
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.1.2...5.1.3
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.1.1...5.1.2
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.1.0...5.1.1
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/4.6.0...4.7.0
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.0.1...5.1.0
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/5.0.0...5.0.1
The 5.0 release will be used by cake 5 core and plugin packages. The primary changes involve type declarations and type hints for PHP 8.0+.
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/4.6.0...5.0.0
Full Changelog: https://github.com/cakephp/cakephp-codesniffer/compare/4.5.1...4.6.0
$object::class explicitly so it isn't enabled by default on php 8.Removed PSR-2 standard that was added before PSR-12 standard.
The PSR-12 standard adds the appropriate PSR-2 sniffs.
SlevomatCodingStandard.Classes.UnusedPrivateElements sniff.CakePHP.Commenting.FunctionComment.InvalidReturn due to issues with compound types. Most of the functionality is already provided by SlevomatCodingStandard.TypeHints.LongTypeHints.UsedLongTypeHint.SlevomatCodingStandard.Commenting.InlineDocCommentDeclaration.MissingVariable rule as the other related rules were disabled in earlier releases, and this rule being enabled prevents advanced static analyzer types from being used.{[@inheritDoc](https://github.com/inheritDoc)} function comments to inherit [@param](https://github.com/param) and [@return](https://github.com/return) tags if none are specified.Bump dependency slevomat/coding-standard to v6.
Shiny new ruleset based off PSR-12 for CakePHP 4.0.
How can I help you explore Laravel packages today?