Releases: inpsyde/php-coding-standards
Releases · inpsyde/php-coding-standards
v0.8.0
- Fix bug in
NoAccessorsSniff
and allow for a few method names related to PHP core interfaces. - Exclude
ArrayAccess
methods fromReturnTypeDeclarationSniff
andArgumentTypeDeclarationSniff
. - Fix bug in
LineLengthSniff
which affected edge cases. - Changed default
LineLengthSniff
max 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.MultipleNewlines
a warning not error. - Added custom
AssignmentInsideConditionSniff
sniff. - Added custom
NoTopLevelDefineSniff
sniff.
v0.6.0
- Missing return type waring from
ReturnTypeDeclarationSniff
skipped for hook callbacks. - Fixed a bug in return counting in helper class that affected few sniffs.
- Add several "Generic" and "Squiz" rules.
- Add
DisallowShortOpenTagSniff
that extends the generic sniff allowing short echo. - Remove
NeutronStandard.Constants.DisallowDefine
because of github.com/Automattic/phpcs-neutron-standard/issues/44 - Renamed configuration properties for
FunctionLengthSniff
. - Add integration tests for custom sniffs.
- Rename
NoASetterSniff
toNoAccessorsSniff
and also warn for getters.
v0.5.1
v0.5.0
- Disabled
NeutronStandard.Functions.TypeHint
and replaced with custom sniffs - Added
ArgumentTypeDeclarationSniff
to replaceNeutronStandard.Functions.TypeHint
sniff for
missing argument types.
It does not check closures used as hook callbacks (because WP cannot be trusted on types). - Added
ReturnTypeDeclarationSniff
to replaceNeutronStandard.Functions.TypeHint
sniff for
missing or wrong return type. - Added
HookClosureReturnSniff
to sniff closures added to filters and missing return values and
closures added to action and having return values.