Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented May 2, 2025

Proposed Changes

The PHP_CodeSniffer 4.0 branch has been completely rebuild. See PHPCSStandards/PHP_CodeSniffer#120 for more detailed information about the "why".

In practice, this means that to test against the upcoming PHPCS 4.0 release, we need to test against the 4.x branch now, not the old 4.0 branch.

A 4.0 beta/RC release is expected in the next few days. Once that is out, a test period starts and depending on whether problems are found or not, the 4.0.0 release will be tagged about a month later (or later if significant problems were found).

When 4.0.0 gets tagged, the PHPCS master branch will be renamed to 3.x and the 4.x branch will be the new "main" branch for PHPCS, so more changes will be needed, but that's for later.

Includes updating the DemoSniff test fixture setup as PHPCS 4.0 will start enforcing for sniffs to implement the Sniff interface.

@jrfnl jrfnl added this to the 1.1.0 milestone May 2, 2025
@jrfnl jrfnl requested a review from a team May 2, 2025 16:54
@jrfnl jrfnl requested review from Potherca and removed request for a team May 14, 2025 12:07
The PHP_CodeSniffer 4.0 branch has been completely rebuild. See PHPCSStandards/PHP_CodeSniffer#120 for more detailed information about the "why".

In practice, this means that to test against the upcoming PHPCS 4.0 release, we need to test against the `4.x` branch now, not the old `4.0` branch.

A 4.0 beta/RC release is expected in the next few days. Once that is out, a test period starts and depending on whether problems are found or not, the 4.0.0 release will be tagged about a month later (or later if significant problems were found).

When 4.0.0 gets tagged, the PHPCS `master` branch will be renamed to `3.x` and the `4.x` branch will be the new "main" branch for PHPCS, so more changes will be needed, but that's for later.

Includes updating to the `DemoSniff` test fixture setup as PHPCS 4.0 will start enforcing for sniffs to implement the `Sniff` interface.
@jrfnl jrfnl force-pushed the feature/ghactions-test-against-new-phpcs-4-branch branch from 6dbfafa to c368238 Compare May 15, 2025 10:34
@jrfnl jrfnl merged commit a1f4b65 into main May 28, 2025
76 of 117 checks passed
@jrfnl jrfnl deleted the feature/ghactions-test-against-new-phpcs-4-branch branch May 28, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

4 participants