WordPress / WordPress-Coding-Standards

PHP_CodeSniffer rules (sniffs) to enforce WordPress coding conventions
MIT License
2.54k stars 479 forks source link

[Question] When will support be given to versions 8 of php? #2070

Closed kallookoo closed 1 year ago

kallookoo commented 2 years ago

Hi,

Currently versions 8 of php are not officially supported (in release), but the curious thing, according to what I have read in the develop branch, is that it is supported. Are you planning to create a new release to include full support for php 8 versions?

jrfnl commented 2 years ago

Yes.

johnnietheblack commented 2 years ago

Is there any notion of a timeline for compat with PHP 8+? Soon various platforms are going to force higher PHP versions...

jrfnl commented 2 years ago

@johnnietheblack We've been working steadily on this behind the scenes for the last few months. I'm not willing to commit to a timeline, but it's coming.

Enchiridion commented 1 year ago

@jrfnl Appreciate your work on this! Any updates on PHP8.0 support? PHP7.4 will be EOL'd in 1 month.

jrfnl commented 1 year ago

Working hard on it and getting closer towards a release.

sandeshjangam commented 1 year ago

Working hard on it and getting closer towards a release.

@jrfnl Do you need any help to get it done faster? I would love to help you with this.

jrfnl commented 1 year ago

@sandeshjangam Help is always welcome.

How you can help will depend largely on your pre-existing PHPCS/Tokenizer knowledge (as I don't want to slow things down at this moment by taking on coaching - after the release I'll happily coach people):

Feel free to claim any of the low hanging fruits and if you want to take on anything more advanced, please ping me with what you're planning to work on, so we can prevent multiple people working on the same thing.

sandeshjangam commented 1 year ago

@jrfnl Thanks for the details. I will have a look and will go for low-hanging fruits for now.

But after the release, I am happy to learn from you...

jrfnl commented 1 year ago

@sandeshjangam We're doing some issue/PR triage at the moment and just came across PR #1265. This might be a nice one to get you started ? See my comment for a list of things which need to be done to get that PR to a mergable state.

IonTulbure commented 1 year ago

Hi. Any news regarding the PHP 8+ support ?

P.S: I would help - but i am not so experienced yet.

GaryJones commented 1 year ago

This will be handled when WPCS 3.0 comes out. See this pinned thread for the status of that.

I'm going to close (and pin) this conversation since the question is answered by the equally general question "When will WPCS 3.0 come out?", which is handled elsewhere.