-
Notifications
You must be signed in to change notification settings - Fork 19
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
fix: Adapt return type for Nextcloud 26 #540
Conversation
8bb7688
to
d23484d
Compare
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.
Good catch! But it turns out this is possible in stable25 - but not in php 7.4 which stable25 still supports. So i don't know what to do here.
cc @come-nc as you added the return type on the storage wrapper. Any idea how we could stay compatible with 7.4 still? Otherwise apps implementing a wrapper would be forced to release separate versions for 25/26. |
9a2d39f
to
62aedf2
Compare
Found a way by having two separate classes and let psalm ignore the error for php 7.4. Not really nice but at least save us from needing to branch off for Nextcloud 26. @mejo- What do you think? |
@juliushaertl sounds great! I was wondering if something like this would be possible. update: I addressed those two. |
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Julius Härtl <[email protected]>
Signed-off-by: Max <[email protected]>
Signed-off-by: Max <[email protected]>
41a3af7
to
a40379b
Compare
Way too many applications got hit by this change in OC. |
Changed in nextcloud/server#36120
Should still be compatible with 25 as adding the return type on the child class is ok if none is there on the parent.