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 #134

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Dec 1, 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 ASAP. ⚠️


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

Note: I'm not changing the version constraints. All tags since 2.0.0 have been recreated in the PHPCSStandards fork, though the package name in those tags has not been changed.

Based on tests I've run, the package should install fine when old tags are requested, though if a user has a composer.json which also includes squizlabs/php_codesniffer in their dependency chain, this means that both will be installed, which could lead to issues.

I recommend tagging a release straight-away. This should then allow our dependencies to update their own requirements and version constraints and to release, to prevent these type of problems.

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.

Ref:

@jrfnl jrfnl added this to the 1.x Next Release milestone Dec 1, 2023
@jrfnl jrfnl force-pushed the feature/switch-to-fork-of-phpcs branch from 5e78785 to 2d376d3 Compare December 7, 2023 01:23
The Squizlabs repo has been abandoned. The project continues in a fork in the PHPCSStandards organisation.

Note: I'm not changing the version constraints. All tags since 2.0.0 have been recreated in the PHPCSStandards fork, though the package name in those tags has not been changed.

~~Based on tests I've run, the package should install fine when old tags are requested, though if a user has a `composer.json` which _also_ includes `squizlabs/php_codesniffer` in their dependency chain, this means that both will be installed, which could lead to issues.~~

~~I recommend tagging a release straight-away. This should then allow _our_ dependencies to update their own requirements and version constraints and to release, to prevent these type of problems.~~

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

Ref:
* squizlabs/PHP_CodeSniffer 3932
@jrfnl jrfnl force-pushed the feature/switch-to-fork-of-phpcs branch from 2d376d3 to 22b1c40 Compare December 7, 2023 04:08
@jrfnl jrfnl marked this pull request as ready for review December 8, 2023 13:39
@jrfnl
Copy link
Member Author

jrfnl commented Dec 8, 2023

@jrfnl jrfnl merged commit aa6f5d6 into stable Dec 8, 2023
33 checks passed
@jrfnl jrfnl deleted the feature/switch-to-fork-of-phpcs branch December 8, 2023 13:40
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.

1 participant