Releases: inpsyde/php-coding-standards
Releases · inpsyde/php-coding-standards
v0.9.0
v0.8.0
- Fix bug in
NoAccessorsSniffand allow for a few method names related to PHP core interfaces. - Exclude
ArrayAccessmethods fromReturnTypeDeclarationSniffandArgumentTypeDeclarationSniff. - Fix bug in
LineLengthSniffwhich affected edge cases. - Changed default
LineLengthSniffmax length to 100, excluding leading indent. - Remove Variable Analysis, too much false positives
v0.7.2
v0.7.1
v0.7.0
- Removed
NeutronStandard.Conditions.DisallowConditionAssignWithoutConditional. - Removed
NeutronStandard.MagicMethods.DisallowMagicGet. - Removed
NeutronStandard.MagicMethods.DisallowMagicSet. - Made
NeutronStandard.Whitespace.DisallowMultipleNewlines.MultipleNewlinesa warning not error. - Added custom
AssignmentInsideConditionSniffsniff. - Added custom
NoTopLevelDefineSniffsniff.
v0.6.0
- Missing return type waring from
ReturnTypeDeclarationSniffskipped for hook callbacks. - Fixed a bug in return counting in helper class that affected few sniffs.
- Add several "Generic" and "Squiz" rules.
- Add
DisallowShortOpenTagSniffthat extends the generic sniff allowing short echo. - Remove
NeutronStandard.Constants.DisallowDefinebecause of github.com/Automattic/phpcs-neutron-standard/issues/44 - Renamed configuration properties for
FunctionLengthSniff. - Add integration tests for custom sniffs.
- Rename
NoASetterSnifftoNoAccessorsSniffand also warn for getters.
v0.5.1
v0.5.0
- Disabled
NeutronStandard.Functions.TypeHintand replaced with custom sniffs - Added
ArgumentTypeDeclarationSniffto replaceNeutronStandard.Functions.TypeHintsniff for
missing argument types.
It does not check closures used as hook callbacks (because WP cannot be trusted on types). - Added
ReturnTypeDeclarationSniffto replaceNeutronStandard.Functions.TypeHintsniff for
missing or wrong return type. - Added
HookClosureReturnSniffto sniff closures added to filters and missing return values and
closures added to action and having return values.