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

refactor(Storage): Make all parameter types strong types #48494

Draft
wants to merge 6 commits into
base: refactor/stream-encryption/typings
Choose a base branch
from

Conversation

provokateurin
Copy link
Member

Summary

Adding strong types to the interface method parameters is allowed as long as it previously didn't define strong type.
I also added them to all implementations for completeness and readability (but I don't know if this is even necessary safety wise).
Most of it was actually done through IntelliJ refactoring which was able to add the strong type to the interface and to all implementations at the same time.

Based on #48487 due to necessary fixes for those tests.

Checklist

@provokateurin provokateurin added 3. to review Waiting for reviews technical debt ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Oct 1, 2024
@provokateurin provokateurin added this to the Nextcloud 31 milestone Oct 1, 2024
@provokateurin provokateurin requested review from Altahrim, come-nc, a team and ArtificialOwl and removed request for a team October 1, 2024 14:19
@provokateurin provokateurin added the pending documentation This pull request needs an associated documentation update label Oct 1, 2024
@provokateurin provokateurin force-pushed the refactor/stream-encryption/typings branch from 9b32a61 to 73ca69d Compare October 1, 2024 15:58
@provokateurin provokateurin force-pushed the refactor/storage/strong-param-types branch from d7aa284 to 024682b Compare October 1, 2024 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews pending documentation This pull request needs an associated documentation update ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant