Skip to content

Commit 0ff92e7

Browse files
sejasclaude
andcommitted
Upgrade wp-cli-tests to v5 to fix PHPCS dependency conflict
phpcompatibility/php-compatibility dev-develop moved to squizlabs/php_codesniffer ^4.0.1, which conflicts with wp-coding-standards/wpcs ^3 requiring ^3.x. Upgrading wp-cli-tests to ^5.0 resolves this by aligning all PHPCS-related dependencies. The explicit phpcompatibility/php-compatibility requirement is removed since wp-cli-tests v5 pulls it in transitively as ^10.0. Also adds phpstan/extension-installer to allow-plugins, as required by wp-cli-tests v5 which added PHPStan support (matching wp-cli/wp-cli upstream config). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fcc0898 commit 0ff92e7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

composer.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@
2828
"wp-cli/wp-cli": "^2.5"
2929
},
3030
"require-dev": {
31-
"wp-cli/wp-cli-tests": "^4.3.2",
32-
"phpcompatibility/php-compatibility": "dev-develop"
31+
"wp-cli/wp-cli-tests": "^5.0"
3332
},
33+
"minimum-stability": "dev",
34+
"prefer-stable": true,
3435
"scripts": {
3536
"behat": "run-behat-tests",
3637
"behat-rerun": "rerun-behat-tests",
@@ -48,7 +49,8 @@
4849
},
4950
"config": {
5051
"allow-plugins": {
51-
"dealerdirect/phpcodesniffer-composer-installer": true
52+
"dealerdirect/phpcodesniffer-composer-installer": true,
53+
"phpstan/extension-installer": true
5254
}
5355
}
5456
}

0 commit comments

Comments
 (0)