Expected behavior
To install
PHP_CodeSniffer version 3.8.0 (stable) by Squiz and PHPCSStandards
Are you willing to submit a PR?
I've had check the source code but it looks like the tool already pointing to the right tool (from PHPCSStandards), but the installed version is different. I can try to make a PR but does not know what code to patch.
Describe the bug When installing the tool
phpcs
, it install old tool from squizlabs instead of new tool from PHPCSStandards. At the setup-php-action documentation page, it linksphpcs
to PHPCSStandards.Version
v1
orv2
.v2
v1
Runners
Operating systems Ubuntu 22.04.3 LTS
PHP versions PHP 8.2 & PHP 8.3 (other versions are also affected)
To Reproduce
Expected behavior To install PHP_CodeSniffer version 3.8.0 (stable) by Squiz and PHPCSStandards
Are you willing to submit a PR? I've had check the source code but it looks like the tool already pointing to the right tool (from PHPCSStandards), but the installed version is different. I can try to make a PR but does not know what code to patch.
Workaround Install using phive or composer, like: