Skip to content

Conversation

@KadelaKuba
Copy link

WHY are these changes introduced?

This project has wrong supported php versions. The ^8.1 notation in composer means that the supported PHP version is >=8.1.0 < 9.0.0-0. But this project is not ready for PHP 8.2.

WHAT is this pull request doing?

This pull request updates the supported PHP versions in composer.json.

There are three types of PHP verions supported now:

  • ^7.4 (>=7.4.0 <8.0.0-0)
  • ^8.0 (>=8.0.0 <8.1.0-0)
  • ^8.1.0 (>=8.1.0 <8.2.0-0)

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

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)

@KadelaKuba KadelaKuba force-pushed the fix-composer-php-versions branch from 25f02e1 to 92018b8 Compare March 3, 2023 10:17
@KadelaKuba
Copy link
Author

I've signed the CLA!

1 similar comment
@KadelaKuba
Copy link
Author

I've signed the CLA!

},
"require": {
"php": "^7.4 || ^8.0 || ^8.1",
"php": "^7.4 || ~8.0 || ~8.1.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

~1.0 is equivalent to ^1.0 or 1.*, but ~1.0.0 is equivalent to 1.0.*.

Suggested change
"php": "^7.4 || ~8.0 || ~8.1.0",
"php": "^7.4 || ~8.0.0 || ~8.1.0",

@fredden fredden mentioned this pull request Apr 26, 2023
3 tasks
@Jan0707
Copy link
Contributor

Jan0707 commented Apr 28, 2023

Closing this in favor of #264 as this would otherwise require updates for the 7.4 version.

@Jan0707 Jan0707 closed this Apr 28, 2023
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.

3 participants