Releases: woohoolabs/coding-standard
Releases · woohoolabs/coding-standard
2.4.0
2.3.0
CHANGED:
- Allow to install slevomat/coding-standard v7
REMOVED:
- SlevomatCodingStandard.Classes.UnusedPrivateElements rule
2.2.0
ADDED:
- Support for PHP 8.0
CHANGED:
- Increased minimum version requirement of slevomat/coding-standard to v6
2.1.1
FIXED:
- SlevomatCodingStandard.Namespaces.UseSpacing.IncorrectLinesCountBetweenDifferentTypeOfUse was configured in a way which prevented PSR-12 conformance
2.1.0
CHANGED:
- Require PHP CodeSniffer 3.5.0 at least
FIXED:
- SlevomatCodingStandard.TypeHints.DeclareStrictTypes was configured in a way which prevented PSR-12 conformance
REMOVED:
- SlevomatCodingStandard.TypeHints.DeclareStrictTypes became unnecessary
2.0.1
REMOVED:
- Check to forbid usage of conditions when a simple return can be used
- Check to require types to be written as natively if possible
- Check to force rules for function phpDoc
2.0.0
ADDED:
- Check to forbid duplicate class names
- Check to forbid inline HTML in PHP code
- Check to forbid alias functions
- Check to forbid Late Static Binding of constants
- Check to forbid dead code
- Check to specific order of phpDoc annotations with empty newline between groups
- Check to forbid useless comments
- Check to require comments with single line written as one-liners
- Check to forbid assignments in conditions
- Check to require consistent spacing for control structures
- Check to forbid usage of conditions when a simple return can be used
- Check to forbid usage of boolean-only ternary operator usage
- Check to forbid useless unreachable catch blocks
- Check to require closures not referencing $this be static
- Check to require newlines around namespace declaration
- Check to require only one namespace declaration in a file
- Check to forbid useless alias for classes, constants and functions
- Check to require no spacing after spread operator
- Check to forbid argument unpacking for functions specialized by PHP VM
- Check to forbid useless semicolon
- Check to require types to be written as natively if possible
- Check to forbid useless @var for constants
- Check to forbid duplicated variables assignments
- Check to forbid useless variables
- Check to force rules for function phpDoc
- Check to forbid global functions
- Check to forbid functions inside functions
- Check to forbid superfluous whitespaces
CHANGED:
- Increased minimum PHP version requirement to 7.4
1.1.2
REMOVED:
- Check for early exit
1.1.1
FIXED:
DisallowEqualOperatorsSniff
was moved to another namespace
1.1.0
ADDED:
- Check for spread operator spacing
- Check for useless else/elseif conditions