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

Bump minimum required PHP version to 8.1 #18

Merged
merged 7 commits into from
May 2, 2024
Merged

Conversation

andyexeter
Copy link
Member

@andyexeter andyexeter commented Apr 29, 2024

This PR bumps the minimum required PHP version for the library to 8.1.

It adds types to all properties, union types to methods, and implements new PHP features which we weren't able to us whilst supporting PHP 7.1 (short arrow functions, for example)

I'll be releasing this as a major version upgrade to prevent any BC breakage, but I'd hope anyone using this library would be on at least PHP 8.1 by now :) Of course, a major version bump is required still because we don't use final anywhere in the codebase and we use protected properties to allow developers to extend the library.

@andyexeter andyexeter merged commit 2c47335 into master May 2, 2024
3 checks passed
@andyexeter andyexeter deleted the feature/php81 branch May 2, 2024 14:16
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.

None yet

1 participant