Update PHP-DI to support PHP 8.4#899
Conversation
60d8477 to
45491db
Compare
45491db to
d5a7921
Compare
d5a7921 to
9ab43f0
Compare
|
@andrewnicols glad to see you stepped up on this PR. I ended up going with a different package which eliminated my need for this fix. I will close the original PR now. |
williamdes
left a comment
There was a problem hiding this comment.
Thanks, I will import this diff into Debian then
I originally did think there was more needed for 8.4
|
Awesome thank you! The coding style warnings are unrelated so let's not be blocked by those. |
|
I am working on Debian packaging the last version and Fix it is you can |
|
Weird, the tests passed in CI for PHP 8.4, any idea? |
First idea goes to laravel serializable closure still v1 in Debian |
|
The test is probably wrong. You should be able to get FQN from all versions of PHP. I would submit a PR, but away skiing. |
|
I think this resolves #896 as well |
|
Yup @esetnik , it does. |
Laravel/Serializable-closure @ v1 is not compatible with PHP 8.4 so how is Debian handling that? |
I was about to say: patches! I guess nobody did catch this, I need to run the code with a basic test and report the failure. |
|
I don'tthink that 1.3.x is actually incompatible, just that compatibility was not declared and it is not tested. |
PHP 8.4 came out in November.
This commit originally built upon #897 but after further investigation and rebasing, I discovered that the approach in 897 covered more than is necessary so I've created a new approach.
#897 modified the composer.json to use the latest compatible version of PHPUnit (
>=9.5) when it is perfectly safe and stable to pin to 9.6 (^9.6) which supports PHP 7.3 through to PHP 8.4.As a result the changes to stop using
willReturnConsecutive()are no longer required (though they will be in the future in some form), and there is no need to make many of the other changes.This changset instead:
^9.6laravel/serializable-closureto^1.0 || ^2.0I believe this is all that is required to make this compatible with PHP 8.0 to PHP 8.4.