-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure Compatibility with PHP 8.0 and 8.1 #21
Comments
Following along to this note, PHP 8.0 is supported mostly but 8.1 does not pass at all. The latest version of https://github.com/WordPress/WordPress-Coding-Standards/ (2.3) fails terribly with that error message you noted: WordPress/WordPress-Coding-Standards#2035 Hopefully, we'll be getting a 3.0 soon: WordPress/WordPress-Coding-Standards#1877 |
WPCS is failing when it checks for a runtime value for An interim workaround is to set runtime values for |
Alternately, we could modify the README to indicate that users should define these values in their config when using this standard (which we are already doing internally, but could formalize this expectation within this package). |
@kevinfodness To clarify, setting the values in the ruleset (ours or the user's) doesn't address the bug. The values must be set on the command line with |
Ah, yes, that is an issue then. Thanks for flagging! |
#30 will fix this with documentation. We'll need to wait for the full |
In preparation for upgrading environments to use PHP 8.0 and 8.1, ensure these coding standards and their dependencies do not throw deprecation warnings or any other unexpected output when used in an environment that is set to PHP 8.0 or 8.1.
For example:
(Note that the above may have already been fixed in this repo by bumping dependency versions, but we need to validate this)
The text was updated successfully, but these errors were encountered: