Closed justinmaurerdotdev closed 10 months ago
I'm experiencing the same issue. I'm not sure what it is, though. Upgrading might fix it https://github.com/wp-cli/wp-cli-tests/issues/175
Yeah that's one of the PHP 8 compat issues that got resolved in WPCS 3.0. We should definitely get that upgrade sorted.
Started with https://github.com/wp-cli/wp-cli-tests/pull/176.
I think we'll need to tag a wp-cli-tests 4.0.0 release, and then update each repository individually.
Bug Report
Describe the current, buggy behavior Some syntax issues in my commits haven't been caught because I haven't been able to run the full test suite. This is because of a PHPCS error I've been getting in my environment. @danielbachhuber saw it on contributor day, but wasn't sure how to fix. The message is below, and appears any time I try to run
composer test
.It's happening with PHP 8.1 and 8.2. For some reason this doesn't seem to be happening in the automated commit tests (at least in the media-command repo), and is happening even with a fresh
composer install
in the wp-cli-dev repo, on the main branch. So I guess it might be something with my particular environment. Any suggestions?