Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Update for phpcs 4.0.0#356

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

Update for phpcs 4.0.0#356
sirbrillig merged 8 commits into
2.xfrom
phpcs-4.0

Conversation

@sirbrillig

@sirbrillig sirbrillig commented Sep 30, 2025

Copy link
Copy Markdown
Owner

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.

@jrfnl jrfnl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Left a few notes.

Comment thread .github/workflows/csqa.yml Outdated
Comment thread .github/workflows/test.yml Outdated
Comment thread VariableAnalysis/Lib/Helpers.php Outdated
Comment thread VariableAnalysis/Lib/Helpers.php Outdated
@sirbrillig

Copy link
Copy Markdown
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

jrfnl commented Sep 30, 2025

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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