Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Correct PHP version requirements #264

Merged
merged 4 commits into from
Apr 28, 2023

Conversation

fredden
Copy link
Contributor

@fredden fredden commented Apr 26, 2023

WHY are these changes introduced?

The current PHP version constraint (^8.0 || ^8.1 || ^8.2) doesn't make sense. It looks like the package is intended to support PHP versions 8.0.x and 8.1.x and 8.2.x with unknown status given to 8.3.x and 8.4.x and so on. However, the constraints used currently is equivalent to ^8.0 and supports all versions of 8.x.x.

https://jubianchi.github.io/semver-check/#/^8.0/8.1.45

WHAT is this pull request doing?

This pull request refines the supported versions to include only those that seem to be intended. When new versions are released, these can be added to the list.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

I'm marking this as a 'patch' because we're only dropping support for future versions of PHP which don't currently exist. Also, given that the most recent pull request merged dropped support for PHP 7.x, and this hasn't been tagged / released yet, this is a great time to fix this bug too.

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above
  • I have added/updated tests for this change
  • I have updated the documentation for public APIs from the library (if applicable)

@fredden
Copy link
Contributor Author

fredden commented Apr 26, 2023

This is (somewhat) a duplicate of #249.

@fredden
Copy link
Contributor Author

fredden commented Apr 27, 2023

@paulomarg please can you merge this (and hopefully #236 too) before releasing the major version number that you will be doing following #262. That'll reduce the number of major version numbers you need to produce.

Copy link
Contributor

@Jan0707 Jan0707 left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@Jan0707 Jan0707 mentioned this pull request Apr 28, 2023
6 tasks
@Jan0707 Jan0707 merged commit 2fe1e97 into Shopify:main Apr 28, 2023
@fredden fredden deleted the php-version-requirement branch April 28, 2023 13:18
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants