Closed fclaussen closed 1 year ago
Once WPCS 3.0 is released, then the next major version of VIPCS will use it as a dependency, meaning the issue you found will be resolved.
In the meantime, you can run PHPCS with PHP 7.4 (even if checking code that needs to run under PHP 8.x) and the issue won't appear.
Hi @GaryJones I appreciate the response.
Is there a timeline for when this will be the case?
WPCS should be out in a couple of months. VIPCS will be out after that.
Bug Description
When running phpcbf on a file it throws the following fatal error
This seems to be a known bug over on the wpcs repository that was already fixed. I'm wondering if maybe the version that ships with vipcs needs updating? There were several tickets open about the same issue over there: https://github.com/WordPress/WordPress-Coding-Standards/issues?q=phpcbf
Minimal Code Snippet
I'm tweaking with my configs to have the WordPress-Core and WordPress-VIP-Go standards at the same time. Here's a simple function with missing spaces around the argument. PHPCS captured the error correctly, the problem is really just with phpcbf.
Environment
Use
php -v
andcomposer show
to get versions.Tested Against
master
branch?Not sure how I would test that using composer. I really just ran the commands on the installation section of the readme.
master
branch of VIPCS.develop
branch of VIPCS.