Skip to content

2.0.0-beta.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@ocean90 ocean90 released this 15 Dec 11:07
· 120 commits to master since this release
2.0.0-beta.0

Changed

  • Update sirbrillig/phpcs-variable-analysis from 2.10.0 to 2.10.1.
  • Increase testVersion for PHP Compatibility check to 7.4.
  • Increase minimum_supported_wp_version to 5.3.

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.