Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 12, 2025

PHPCSDevTools currently only contains one tool which has a dependency on PHPCS: PHPCSDebug.

PHPCSDebug is already compatible with PHPCS 4.0, no changed needed. The only thing which does need a change is the test expectations as the tokenization of the PHP open tag has changed in PHPCS 4.0, which means the output expectation will be different between PHPCS 3.x vs 4.x.

Includes:

  • Explicitly declaring compatibility with PHPCS 4.0 in the composer.json file.
  • Updating the workflows to use the new PHPCS 4.x branch for testing.
  • Updating the workflow to structurally test against both PHPCS 3.x as well as 4.x.
  • Not allowing builds against PHPCS 4.x to fail anymore.

PHPCSDevTools currently only contains one tool which has a dependency on PHPCS: PHPCSDebug.

PHPCSDebug is already compatible with PHPCS 4.0, no changed needed. The only thing which does need a change is the test expectations as the tokenization of the PHP open tag has changed in PHPCS 4.0, which means the output expectation will be different between PHPCS 3.x vs 4.x.

Includes:
* Explicitly declaring compatibility with PHPCS 4.0 in the `composer.json` file.
* Updating the workflows to use the new PHPCS 4.x branch for testing.
* Updating the workflow to structurally test against both PHPCS 3.x as well as 4.x.
* Not allowing builds against PHPCS 4.x to fail anymore.
@jrfnl jrfnl added this to the 1.x Next milestone Jun 12, 2025
@jrfnl jrfnl merged commit 5aa1603 into stable Jun 12, 2025
74 checks passed
@jrfnl jrfnl deleted the feature/compatibility-with-phpcs-4.x branch June 12, 2025 10:17
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.

2 participants