diff --git a/CHANGELOG.md b/CHANGELOG.md index f31987da..e76e867d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ### Added - Included `WordPress-Docs` by default in PHPCS #177 - Add ESLint rule for JSX boolean values #183 + - Disallow `use function` and `use const` #188 ### Updated - Updated WPCS to 2.2.1 #151 diff --git a/HM/ruleset.xml b/HM/ruleset.xml index c9dda8bd..936ea421 100644 --- a/HM/ruleset.xml +++ b/HM/ruleset.xml @@ -156,4 +156,7 @@ + + + diff --git a/composer.json b/composer.json index db4d4a16..b679066d 100644 --- a/composer.json +++ b/composer.json @@ -3,6 +3,8 @@ "description": "Human Made coding standards", "type": "phpcodesniffer-standard", "license": "GPL-2.0-or-later", + "minimum-stability": "dev", + "prefer-stable": true, "require": { "php": ">=7.1", "wp-coding-standards/wpcs": "2.2.1", @@ -10,7 +12,8 @@ "fig-r/psr2r-sniffer": "^0.5.0", "phpcompatibility/phpcompatibility-wp": "^2.0.0", "squizlabs/php_codesniffer": "~3.5.0", - "dealerdirect/phpcodesniffer-composer-installer": "^0.6.0" + "dealerdirect/phpcodesniffer-composer-installer": "^0.6.0", + "phpcsstandards/phpcsextra": "^1.0" }, "require-dev": { "phpunit/phpunit": "^5.7"