Skip to content

Conversation

@acoulton
Copy link
Contributor

Using php-cs-fixer/shim avoids us having any restrictions from php-cs-fixer's own dependency constraints.

This was initially included in #1687 by @Kocal as it was required to allow us to install Symfony 8 ahead of php-cs-fixer adding support.

I've extracted to a separate PR for the 3.x series - we might as well switch now to reduce merge conflicts or any other dependency constraints in future.

Avoids dependency conflicts with other packages.
composer.json Outdated
"symfony/process": "^5.4 || ^6.4 || ^7.0",
"symfony/filesystem": "^5.4 || ^6.4 || ^7.0"
"symfony/filesystem": "^5.4 || ^6.4 || ^7.0",
"php-cs-fixer/shim": "^3.89"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is good to keep this list sorted (though I can see that this was already broken with symfony/filesystem) Can you please change this so that the list is sorted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch - I've configured composer to sort packages and re-sorted the requires accordingly.

Copy link
Contributor

@carlos-granados carlos-granados left a comment

Choose a reason for hiding this comment

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

nice @acoulton

@acoulton acoulton merged commit cfde719 into Behat:master Nov 24, 2025
21 checks passed
@acoulton acoulton deleted the 3.x-php-cs-fixer-shim branch November 24, 2025 10:18
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.

4 participants