-
Notifications
You must be signed in to change notification settings - Fork 2
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
Update wpcs 3.0.0 #58
Update wpcs 3.0.0 #58
Conversation
To do: rebase useless commits into one. |
@goranalkovic-infinum @iruzevic if you agree, I can rebase this pr and we can merge it and tag 2.0.0-beta, because the release will depend on the upstream fix in the wpcs that will be released in 3.1.0 (don't know when this will happen tbh). Then you can release new libs version with this beta CS version so that you're not blocked on PHP8+. Oh, and also you can pass this to the management: 😁 |
This will be bumped to 3.1.0 once the fix of the upstream sniff is merged. Remove autoload dev part from the composer.json - conflicted with phpstan, and didn't do anything else for the standard.
Raised the minimum WP version to 6.0, replaced outdated and deprecated sniffs.
Still need to test this out. Also the sniff throws errors due to an upstream bug, this needs to be addressed first.
The inside of a 'bad' static method won't get checked, because we only stop at the method name. What is inside is not important if the method itself is not safe.
PHP8 compabitbility
e4829e2
to
3cf15ac
Compare
@iruzevic @iobrado @goranalkovic-infinum @dadadavorin @piqusy @vedranpetrac @kancijan Any feedback about my beta proposal is welcomed 😄 Also, feel free to review the code 🙂 (Can't tag the team because I'm not in the org anymore 😅) |
Description
Still a WIP due to an upstream bug: WordPress/WordPress-Coding-Standards#2370
This update will sync the CS with the latest WPCS 3.0.0, and do some quality of life improvements.
To do: