-
-
Notifications
You must be signed in to change notification settings - Fork 488
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
README: make it clear that the current stable version (v2.3.0) does not work on PHP8 #2219
Conversation
@bluefuton Thank you for your willingness to contribute to WordPressCS. While I appreciate what you are trying to do, making this change in the |
As there have been several issues about this, including issues about how to install WPCS If you think that would help, suggestions on which issue would be the best one to pin would be welcome. |
Thanks @jrfnl! I did consider this, but the README for
Possibly #1967, as that's where I ended up - or creating a new issue called "PHP8 compatibility" summarizing the current situation? My problem solving journey was:
Thanks for all your hard work on v3.0.0! Sounds like it has been a big effort to get to PHP 8 compatibility. |
@@ -58,7 +58,7 @@ This project is a collection of [PHP_CodeSniffer](https://github.com/squizlabs/P | |||
|
|||
### Requirements | |||
|
|||
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.7.2** or higher. | |||
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.7.2** or higher. The current stable release does not work on PHP 8, and for the moment we recommend that you use PHP 7.4. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.7.2** or higher. The current stable release does not work on PHP 8, and for the moment we recommend that you use PHP 7.4. | |
The WordPress Coding Standards require PHP 5.4 or higher and [PHP_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) version **3.7.2** or higher. PHP 8 is only supported in WordPress Coding Standards v3.0.0 and above. |
Where are the instructions on how to install WPCS develop? If you follow the instructions in the readme under develop it installs 2.3.0. |
@BWBama85 In your project's {
"repositories": [
{
"type": "git",
"url": "https://github.com/WordPress/WordPress-Coding-Standards.git"
}
],
"require-dev": {
"wp-coding-standards/wpcs": "dev-develop"
}
} Then, running Hope this helps. |
AFAIK you shouldn't even need to add the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this makes perfect sense.
Since WP 3.0 is close to release, I'm closing this one out. |
I attempted to install PHPCS and WPCS on a new machine running PHP 8.0.28 today, and spent quite a bit of time researching why it wasn't working and what the appropriate remedy was.
Specifically I ran into this bug: #1967 and it doesn't appear that the fix for this will be released until v3.0.0.
In the meantime, it would be kind to developers if the project makes it clear upfront that PHP8 is not supported, and recommends PHP 7.4 instead.