From 353a5a39f4203c2c0e056904055b2f600a9ae1d2 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 4 Apr 2024 17:15:47 +0200 Subject: [PATCH 1/2] Composer: update minimum requirements for various dependencies PHP Parallel Lint has released a version which fixes a PHP 8.4 incompatibility (and fixes some bugs). PHP_CodeSnifer has released three new versions in the mean time. The most important changes are: * Support for PHP 8.3 typed class constants. * Support for PHP 8.3 readonly anonymous classes. * A new sniff: `Generic.CodeAnalysis.RequireExplicitBooleanOperatorPrecedence` - this sniff is included in WPCS 3.1.0. * New feature adding the ability to deprecate sniffs in a user friendly manner. * Lots of new sniff documentation. * Various performance improvements. * Range of bugfixes. PHPCSUtils has released a version with compatibility fixes for PHP 8.4. WPCS has released a version with updates related to the WP 6.5 release and three new sniffs (from PHPCS itself + PHPCSExtra). Slevomat has released a version with mostly bugfixes. Refs: * https://github.com/php-parallel-lint/PHP-Parallel-Lint/releases/tag/v1.4.0 * https://github.com/phpcsstandards/php_codesniffer/releases * https://github.com/PHPCSStandards/PHPCSUtils/releases/tag/1.0.10 * https://github.com/WordPress/WordPress-Coding-Standards/releases/tag/3.1.0 * https://github.com/slevomat/coding-standard/releases/tag/8.15.0 --- composer.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/composer.json b/composer.json index 8a9d902..58ba0da 100644 --- a/composer.json +++ b/composer.json @@ -28,14 +28,14 @@ "ext-tokenizer": "*", "automattic/vipwpcs": "^3.0.0", "php-parallel-lint/php-console-highlighter": "^1.0.0", - "php-parallel-lint/php-parallel-lint": "^1.3.2", + "php-parallel-lint/php-parallel-lint": "^1.4.0", "phpcompatibility/phpcompatibility-wp": "^2.1.4", "phpcsstandards/phpcsextra": "^1.2.1", - "phpcsstandards/phpcsutils": "^1.0.9", + "phpcsstandards/phpcsutils": "^1.0.10", "sirbrillig/phpcs-variable-analysis": "^2.11.17", - "slevomat/coding-standard": "^8.14.0", - "squizlabs/php_codesniffer": "^3.8.0", - "wp-coding-standards/wpcs": "^3.0.1" + "slevomat/coding-standard": "^8.15.0", + "squizlabs/php_codesniffer": "^3.9.1", + "wp-coding-standards/wpcs": "^3.1.0" }, "require-dev": { "phpcompatibility/php-compatibility": "^9.3.5", From c4216fd3973c0a5fd7fb767576a79f277dacd6a6 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Thu, 4 Apr 2024 17:26:26 +0200 Subject: [PATCH 2/2] YoastCS ruleset: remove two sniffs which are now in WPCS WPCS 3.1.0 includes the `Universal.PHP.LowercasePHPTag` (Core) and the `Universal.CodeAnalysis.NoDoubleNegative` (Extra) sniffs, so no need to explicitly require those anymore for YoastCS. --- Yoast/ruleset.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/Yoast/ruleset.xml b/Yoast/ruleset.xml index a633118..c28bf55 100644 --- a/Yoast/ruleset.xml +++ b/Yoast/ruleset.xml @@ -188,10 +188,6 @@ - - - - @@ -218,9 +214,6 @@ - - -