Skip to content
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

Switch to PHPCSStandards/PHP_CodeSniffer & raise minimum supported version #2408

Merged
merged 5 commits into from
Dec 10, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 2, 2023

⚠️ This is a DRAFT PR on purpose as it references releases which have not yet been tagged. Once the PHPCS 3.8.0 tag is available (which contains the Composer replace directive), this can/should be merged and released ASAP. ⚠️


Switch to PHPCSStandards/PHP_CodeSniffer

The Squizlabs repo has been abandoned. The project continues in a fork in the PHPCSStandards organisation.

Ref:

🆕 Revert changes to the Composer package name

In contrast to earlier information, arrangements are now being made to allow the package to continue under its original name on Packagist. The commit (in the new repo) to rename the package has been reverted.

Composer: raise the minimum supported PHPCS version to 3.8.0

... ... for improved PHP 8.2 support.

Includes updating references to the PHPCS version whenever relevant throughout the codebase.

Composer: update various version constraints

... after the tooling has also updated to the PHPCSStandards version of PHPCS.

Refs:

🆕 DeprecatedFunctionsUnitTest: remove work-around for PHPCS bug

... as the bug is now fixed.

@jrfnl jrfnl added Status: Requirement not met On hold until WPCS supports a particular version of a dependency (PHP, PHP_CodeSniffer, etc.). Meta: Repo labels Dec 2, 2023
@jrfnl jrfnl added this to the 3.x Next milestone Dec 2, 2023
@jrfnl jrfnl changed the title Feature/switch to fork of phpcs Switch to PHPCSStandards/PHP_CodeSniffer & raise minimum supported version Dec 2, 2023
@jrfnl jrfnl modified the milestones: 3.x Next, 3.1.0 Dec 3, 2023
@jrfnl jrfnl force-pushed the feature/switch-to-fork-of-phpcs branch from 74c4ed9 to 2b33752 Compare December 3, 2023 23:06
@jrfnl
Copy link
Member Author

jrfnl commented Dec 3, 2023

Rebased without changes to get it passed a merge conflict.

@jrfnl
Copy link
Member Author

jrfnl commented Dec 7, 2023

Update: The Composer package name will not change, so while this PR should still be merged at our convenience (after the 3.8.0 release expected this Friday), we will not need to do a release to unblock end-users. (though we may want to do a release anyway, but not for reasons related to this PR)

@jrfnl jrfnl removed the Status: Requirement not met On hold until WPCS supports a particular version of a dependency (PHP, PHP_CodeSniffer, etc.). label Dec 8, 2023
@jrfnl jrfnl marked this pull request as ready for review December 8, 2023 17:40
@jrfnl
Copy link
Member Author

jrfnl commented Dec 8, 2023

PHPCS 3.8.0 has been released. (as well as PHPCSUtils 1.0.9 + PHPCSExtra 1.2.1)

Marking this PR as ready for review.

@jrfnl
Copy link
Member Author

jrfnl commented Dec 8, 2023

FYI: #2412 is needed to get a passing build, but that, in turn, needs commit 00bb218 to get a passing build.

I suggest merging #2412 first (with admin override) and rebasing this PR after that.

@dingo-d
Copy link
Member

dingo-d commented Dec 10, 2023

I've merged #2412. You can rebase and I'll approve and merge this PR 👍🏼

The Squizlabs repo has been abandoned. The project continues in a fork in the PHPCSStandards organisation.

Ref:
* squizlabs/PHP_CodeSniffer 3932
In contrast to earlier information, arrangements are now being made to allow the package to continue under its original name on Packagist. The commit (in the new repo) to rename the package [has been reverted](PHPCSStandards/PHP_CodeSniffer#135).
@jrfnl jrfnl force-pushed the feature/switch-to-fork-of-phpcs branch from 00bb218 to 105a10c Compare December 10, 2023 13:07
@jrfnl
Copy link
Member Author

jrfnl commented Dec 10, 2023

Rebased, 🤞🏻 for a passing build.

@jrfnl
Copy link
Member Author

jrfnl commented Dec 10, 2023

And... we have lift-off.... 🚀

@dingo-d dingo-d merged commit 44f3abb into develop Dec 10, 2023
42 checks passed
@dingo-d dingo-d deleted the feature/switch-to-fork-of-phpcs branch December 10, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants