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

fix(CollectiveStorage): adjust getOwner to NC31 #1491

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

mejo-
Copy link
Member

@mejo- mejo- commented Sep 18, 2024

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

@max-nextcloud
Copy link
Collaborator

Wait... that change looks like it's only adding a return type to the function.

Would this break with NC <= 30 because PHP does not yet support that syntax

Copy link
Collaborator

@max-nextcloud max-nextcloud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this actually has the full change.

@mejo-
Copy link
Member Author

mejo- commented Sep 18, 2024

Wait... that change looks like it's only adding a return type to the function.

Would this break with NC <= 30 because PHP does not yet support that syntax

Exactly, it only adds the return type to be in line with the parent class on Nextcloud 31. I first thought it would then be incompatible with the parent classes on Nextcloud 30 and below, but manual testing and CI both proved me wrong. So should be good to be merged 😊

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for this 🙈

@provokateurin
Copy link
Member

The change is backwards compatible as you can add return types for methods you inherit if the parent doesn't have any return type.

@mejo- mejo- merged commit a27f169 into main Sep 18, 2024
49 of 53 checks passed
@mejo- mejo- deleted the fix/nc31_collective_storage branch September 18, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants