WordPress-Coding-Standards icon indicating copy to clipboard operation
WordPress-Coding-Standards copied to clipboard

Is WordPressCS compatible with PHPCS 4.0.0 ?

Open epigeyre opened this issue 3 months ago • 4 comments

WordPressCS is not compatible with PHPCS 4.0 (at least it still have a version constraint in composer.json for squizlabs/php_codesniffer ^3.13.0). Is it compatible with PHPCS 4.0 as is (and in this case the version constraint in composer.json should be upgraded to "^3.13.0 || ^4.0")? Or does it need adjustments?

Thanks for your help

epigeyre avatar Sep 23 '25 09:09 epigeyre

Currently running into the same issue.

frederikkempe avatar Sep 23 '25 14:09 frederikkempe

WordPressCS is not yet compatible with PHPCS 4.0. The version constraints in the composer.json reflect that.

Work is on the way in the background to change that, but please be a little patient.

jrfnl avatar Sep 23 '25 16:09 jrfnl

@jrfnl Thanks for the update. Really appreciate the effort. Keep up the good work!

frederikkempe avatar Sep 24 '25 07:09 frederikkempe

@frederikkempe Thanks, but in this case, @rodrigoprimo is the one doing the bulk of the work 🦸🏻‍♂️

jrfnl avatar Sep 24 '25 09:09 jrfnl