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
I don't know if there is a fix right now, because there isn't a separate development branch of this sniff that would track WordPress-Coding-Standards but I'll leave it here for the future.
The text was updated successfully, but these errors were encountered:
I had to update to PHP 8 and WordPress-Coding-Standards intentionally doesn't support PHP 8 on their main branch, but only the development branch:
WordPress/WordPress-Coding-Standards#2035 (comment)
Their development branch uses https://github.com/PHPCSStandards/PHPCSExtra as a new dependency
And they have removed
WordPress.PHP.DisallowShortTernary
in favor ofUniversal.Operators.DisallowShortTernary
here:WordPress/WordPress-Coding-Standards#1911
So now with this setup
WP_CLI_CS
returnsERROR: Referenced sniff "WordPress.PHP.DisallowShortTernary" does not exist
wp-cli-tests/WP_CLI_CS/ruleset.xml
Line 79 in 9b8cf32
I don't know if there is a fix right now, because there isn't a separate development branch of this sniff that would track
WordPress-Coding-Standards
but I'll leave it here for the future.The text was updated successfully, but these errors were encountered: