-
-
Notifications
You must be signed in to change notification settings - Fork 437
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
Fixed incompatible interface deprecations in DB Session Adapter #3497
Fixed incompatible interface deprecations in DB Session Adapter #3497
Conversation
b710633
to
57ec921
Compare
57ec921
to
27bef5a
Compare
I tried adding the type hints following |
I didn't see your PR and made an attempt to ignore these errors here: #3498 but it seems yours actually works. 😄 What do you think about changing:
to
? |
@colinmollenhour I've switched it. |
if we change the interface of a public class, shouldn't we have this PR in the next branch? |
The interface is unused in the core and the only reference I found was commented out 15 years ago. |
😂 ok then, it seems enough some of our code is really old |
on my local machine phpstan runs without errors also without the |
The issue this PR was meant to be fixing is PHP deprecation errors related to incompatible types with the interface. PHPStan never complained about them in |
sure, that's why I'm running phpstan on my local machine with php8, which is the difference that triggers the error in next ;-) (actually i've to admin I ran it with php8.2 instead of 8.1) |
In |
true, this version works correctly but it would have to be committed only on the |
Does this patch also fix the next branch? My only goal was to get the PHPStan action passing again - if this does that then I am for it. :) |
It should only be that next workflows run on php8.1 |
It should fix it. |
There was a problem hiding this 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. The change of which interface class is implemented should be benign.
I would have preferred the proper fix on the next branch :-\ |
@fballiano Feel free to open one for |
done, but I think this one should be merged too, right? |
Yeah. The PR for |
then I guess it's time ;-) |
merged, forward ported and updated #3499 ;-) |
Description (*)
Small fix to make the methods in DB session adapter compatible with
SessionHandlerInterface
.Fixed Issues (if relevant)
Manual testing scenarios (*)
<session_save>
inlocal.xml
todb
.system.log
.Contribution checklist (*)