Closed mejo- closed 1 month ago
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
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 :blush:
The change is backwards compatible as you can add return types for methods you inherit if the parent doesn't have any return type.
🏁 Checklist
npm run lint
/npm run stylelint
/composer run cs:check
)