Skip to content

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Sep 30, 2025

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
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.

@jrfnl
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....

@sirbrillig
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!

@sirbrillig sirbrillig marked this pull request as ready for review September 30, 2025 22:01
@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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CodeSniffer 4.0 compatibility
2 participants