You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running phpcbf on a file it throws the following fatal error
Fatal error: Uncaught PHP_CodeSniffer\Exceptions\RuntimeException: trim(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/trewknowledge002/test-wp-prettier copy/vendor/wp-coding-standards/wpcs/WordPress/Sniffs/WP/I18nSniff.php on line 194 in /Users/trewknowledge002/test-wp-prettier copy/vendor/squizlabs/php_codesniffer/src/Runner.php:608
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.
functionsnake_case($foo) {
echo'test';
}
Environment
Use php -v and composer show to get versions.
Question
Answer
PHP version
8.1.3
PHP_CodeSniffer version
3.7.2
VIPCS version
2.3.0
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.
I have verified the issue still exists in the master branch of VIPCS.
I have verified the issue still exists in the develop branch of VIPCS.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: