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

Fix #75: phpcompatibility/php-compatibility dev-develop #76

Merged
merged 3 commits into from
Oct 7, 2024

Conversation

danepowell
Copy link
Collaborator

@danepowell danepowell commented Oct 4, 2024

Motivation

Fixes #75

Proposed changes

Update phpcompatibility/php-compatibility to dev-develop branch, as recommended by its maintainers (can switch back to stable after a 10.0 release)

Rohit was right, phpcompatibility 9.x does basically nothing when running in a PHP 8 environment. Case in point: Acquia CLI, which uses a ton of PHP 8 syntax, never saw a violation from this standard on 9.x. Updating to the develop branch revealed thousands of violations.

We should consider this a breaking change. If we release it, projects that don't want to support PHP 7 will need to change the minimum version in their phpcs.xml:

Projects that do support PHP 7 may still expect to see some violations.

Alternatives considered

  • Drop this project and replace it with a phpstan equivalent
  • Drop this project and do nothing. That would be functionally equivalent to the present situation.

Testing steps

Try this on projects of various PHP versions

Copy link
Contributor

@TravisCarden TravisCarden left a comment

Choose a reason for hiding this comment

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

Tests pass. Works for me. ¯\_(ツ)_/¯

@danepowell danepowell merged commit b833eda into acquia:develop Oct 7, 2024
20 checks passed
@joshirohit100
Copy link

Looks fine! I will try this

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.

Using phpcompatibility/php-compatibility version 9.X while with the php >= 8.0, it should be develop branch
3 participants