Skip to content

Conversation

@fsamapoor
Copy link
Member

Summary

Following previous PRs taking advantage of PHP8's constructor property promotion in /core/ namespace, I have also made the required adjustments to the classes in /lib/private/Collaboration namespace.

I figured I should split the changes into two PRs to make reviewing the changes easier.

The improvements in this PR include but are not limited to:

  • Using PHP8's constructor property promotion
  • Adding return types
  • Adding types to properties
  • Removing redundant docblocks

Checklist

@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 3, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 3, 2023
@szaimen szaimen requested review from a team, ArtificialOwl, icewind1991 and nfebe and removed request for a team July 12, 2023 11:58
Copy link
Contributor

@nfebe nfebe left a comment

Choose a reason for hiding this comment

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

Few inline comments mostly type hinting

@fsamapoor
Copy link
Member Author

@fenn-cs Thank you for taking the time to review the changes. Almost all of the comments boil down to the inability of adding the parameter type hints, because of the implemented interfaces. I don't think this is the right time and PR to do such changes in all the interfaces and as a result, all the implemented classes.

@fsamapoor fsamapoor force-pushed the refactor_lib_private_collaboration_part1 branch 2 times, most recently from c36f15e to c60f54b Compare July 14, 2023 14:17
@fsamapoor fsamapoor requested a review from nfebe July 14, 2023 14:22
@nfebe nfebe enabled auto-merge July 14, 2023 19:38
@fsamapoor fsamapoor requested a review from artonge September 21, 2023 05:30
@artonge artonge force-pushed the refactor_lib_private_collaboration_part1 branch from c60f54b to 48c92a4 Compare September 21, 2023 07:46
fsamapoor and others added 2 commits September 21, 2023 11:28
Mainly using PHP8's constructor property promotion.

Signed-off-by: Faraz Samapoor <[email protected]>
Co-authored-by: fenn-cs <[email protected]>
Signed-off-by: Faraz Samapoor <[email protected]>
@fsamapoor fsamapoor force-pushed the refactor_lib_private_collaboration_part1 branch from 48c92a4 to 14ad1e9 Compare September 21, 2023 07:58
@fsamapoor
Copy link
Member Author

@artonge Thank you for the review. Rebased it again to pass the failed DCO workflow.

@icewind1991 icewind1991 merged commit 7fecdf6 into nextcloud:master Sep 22, 2023
@fsamapoor fsamapoor deleted the refactor_lib_private_collaboration_part1 branch September 22, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants