From c198d3e5ff94f1c1d2e943f8cb2f1e2e4db22419 Mon Sep 17 00:00:00 2001 From: Gary Jones Date: Mon, 27 Jul 2026 14:51:26 +0100 Subject: [PATCH] build: raise minimum WordPressCS to 3.4.1 WordPressCS 3.4.1 is a security release, and 3.3.0-3.4.1 also improve the accuracy of several sniffs that VIPCS bundles, so requiring it passes both benefits on to VIPCS users. The other coding-standard floors are raised in step to match what WordPressCS 3.4.1 itself requires: PHP_CodeSniffer 3.13.5, PHPCSUtils 1.2.3, PHPCSExtra 1.5.1 and VariableAnalysis 2.13.0. The README requirements and the PHPCompatibility testVersion (now 7.4-, matching the existing PHP floor) are brought back into sync, as both had drifted from composer.json. --- .phpcs.xml.dist | 2 +- README.md | 12 ++++++------ composer.json | 10 +++++----- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.phpcs.xml.dist b/.phpcs.xml.dist index 4ca016ad..ea93917a 100644 --- a/.phpcs.xml.dist +++ b/.phpcs.xml.dist @@ -44,7 +44,7 @@ - + diff --git a/README.md b/README.md index afea6c2e..2b6c2e27 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ The rulesets use rules from the [WordPress Coding Standards](https://github.com/ ## Minimal requirements -* PHP 5.4+ -* [PHPCS 3.13.2+](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases) -* [PHPCSUtils 1.1.0+](https://github.com/PHPCSStandards/PHPCSUtils) -* [PHPCSExtra 1.4.0+](https://github.com/PHPCSStandards/PHPCSExtra) -* [WPCS 3.1.0+](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases) -* [VariableAnalysis 2.12.0+](https://github.com/sirbrillig/phpcs-variable-analysis/releases) +* PHP 7.4+ +* [PHPCS 3.13.5+](https://github.com/PHPCSStandards/PHP_CodeSniffer/releases) +* [PHPCSUtils 1.2.3+](https://github.com/PHPCSStandards/PHPCSUtils) +* [PHPCSExtra 1.5.1+](https://github.com/PHPCSStandards/PHPCSExtra) +* [WPCS 3.4.1+](https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards/releases) +* [VariableAnalysis 2.13.0+](https://github.com/sirbrillig/phpcs-variable-analysis/releases) ## Installation diff --git a/composer.json b/composer.json index bfe45898..30ca3ab7 100644 --- a/composer.json +++ b/composer.json @@ -17,11 +17,11 @@ ], "require": { "php": ">=7.4", - "phpcsstandards/phpcsextra": "^1.4.0", - "phpcsstandards/phpcsutils": "^1.1.0", - "sirbrillig/phpcs-variable-analysis": "^2.12.0", - "squizlabs/php_codesniffer": "^3.13.2", - "wp-coding-standards/wpcs": "^3.2.0" + "phpcsstandards/phpcsextra": "^1.5.1", + "phpcsstandards/phpcsutils": "^1.2.3", + "sirbrillig/phpcs-variable-analysis": "^2.13.0", + "squizlabs/php_codesniffer": "^3.13.5", + "wp-coding-standards/wpcs": "^3.4.1" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.4.0",