Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update for phpcs 4.0.0 #356

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

Merged
sirbrillig merged 8 commits into 2.x from phpcs-4.0
Sep 30, 2025
Merged

Update for phpcs 4.0.0 #356

sirbrillig merged 8 commits into 2.x from phpcs-4.0
Sep 30, 2025

Conversation

@sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Sep 30, 2025
edited
Loading

Fixes #355

This PR follows the upgrade guide in https://github.com/PHPCSStandards/PHP_CodeSniffer/wiki/Version-4.0-Developer-Upgrade-Guide

The main change is supporting the T_NAME... constants like T_NAME_FULLY_QUALIFIED in function names.

Copy link
Collaborator

@jrfnl jrfnl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a few notes.

sirbrillig reacted with heart emoji
Copy link
Owner Author

Nearly got this working. There's just coverage failures now: ERROR: Couldn't find specified file: build/logs/clover.xml. I'm guessing that the API of some coverage thing has changed.

Copy link
Collaborator

jrfnl commented Sep 30, 2025

Nearly got this working. There's just coverage failures now: ERROR: Couldn't find specified file: build/logs/clover.xml. I'm guessing that the API of some coverage thing has changed.

No, you added PHPUnit 12 to the composer.json without accounting for it in the workflow....

Copy link
Owner Author

No, you added PHPUnit 12 to the composer.json without accounting for it in the workflow....

🤦 Oops! I just updated all the dependencies without looking too closely at major versions. Thank you!

jrfnl reacted with laugh emoji

@sirbrillig sirbrillig merged commit ce42676 into 2.x Sep 30, 2025
62 checks passed
@sirbrillig sirbrillig deleted the phpcs-4.0 branch September 30, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jrfnl jrfnl jrfnl left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

CodeSniffer 4.0 compatibility

AltStyle によって変換されたページ (->オリジナル) /