-
-
Notifications
You must be signed in to change notification settings - Fork 502
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
Add support for PHP 8.1 #388
Conversation
Codecov Report
@@ Coverage Diff @@
## main #388 +/- ##
============================================
- Coverage 96.91% 96.13% -0.79%
- Complexity 533 555 +22
============================================
Files 64 64
Lines 1522 1551 +29
============================================
+ Hits 1475 1491 +16
- Misses 47 60 +13
|
Hmm, tried to get it to upload coverage from two different runs, hoping it would merge them. Seems not. We need PHP less than 7.4 and PHP at least 7.4 to get 100% coverage on these changes, together. |
Friendly ping, @ramsey. cc @nunomaduro |
I'll try to take a look this week. 🙂 |
Thank you for contributing! 🎉 |
This PR gets this library working on PHP 8.1. The new PHP 7.4 style serialisation is now mandatory, from PHP 8.1 onwards. I've checked that the two incompatible serialisation formats are in fact compatible. The old style can be deserialized just fine: https://3v4l.org/XfUS3. This means upgrading is easy and no risk. On PHP 7.2 and 7.3, there are no changes. On PHP 7.4+, the old style gets deserialized properly, and going forward, the new style will be used for serialisation.