Releases
2.0.0
Changed
PHP: Update sirbrillig/phpcs-variable-analysis from 2.10.0 to 2.10.2 .
PHP: Increase testVersion
for PHP Compatibility check to 7.4.
PHP: Increase minimum_supported_wp_version
to 5.3.
CSS: Replace stylelint-config-wordpress
with @wordpress/stylelint-config
.
JS: Allow @wordpress/eslint-plugin
v8 as dependency, remove v6.
Added
PHP Rule SlevomatCodingStandard.TypeHints.ReturnTypeHint
: Require type hints for return values.
PHP Rule SlevomatCodingStandard.TypeHints.ParameterTypeHint
: Require type hints for parameters.
PHP Rule SlevomatCodingStandard.TypeHints.UselessConstantTypeHint
: Disallow useless @var
annotations.
PHP Rule SlevomatCodingStandard.Classes.ClassConstantVisibility
: Require declaring the visibility of class constants.
PHP Rule SlevomatCodingStandard.Functions.RequireArrowFunction
: Require short closures/arrow functions if possible.
PHP Rule SlevomatCodingStandard.Functions.ArrowFunctionDeclaration
: Require specific style of arrow functions.
You can’t perform that action at this time.