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 lib/private/OCS #39173

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

shdehnavi
Copy link
Contributor

Summary

The required adjustments have been made to the classes in /lib/private/OCS namespace.

The improvements:

  • Using PHP8's constructor property promotion
  • Adding return types
  • Adding types to properties
  • Replacing qualifiers with imports

Checklist

@solracsf solracsf added 3. to review Waiting for reviews technical debt labels Jul 6, 2023
@solracsf solracsf added this to the Nextcloud 28 milestone Jul 6, 2023
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Nice

Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Please squash into one commit

@skjnldsv skjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzz blizzz modified the milestones: Nextcloud 28, Nextcloud 29 Nov 23, 2023
@shdehnavi shdehnavi force-pushed the refactor_lib_private_ocs branch 2 times, most recently from 88a5356 to 5e043f9 Compare December 11, 2023 12:54
@shdehnavi
Copy link
Contributor Author

@ChristophWurst All commits squashed into one commit and all conflicts have been resolved.

@ChristophWurst
Copy link
Member

Error: lib/private/OCS/Provider.php:42:3: UndefinedThisPropertyAssignment: Instance property OC\OCS\Provider::$appManager is not defined (see https://psalm.dev/040)
Error: lib/private/OCS/Provider.php:60:7: UndefinedThisPropertyFetch: Instance property OC\OCS\Provider::$appManager is not defined (see https://psalm.dev/041)

@shdehnavi
Copy link
Contributor Author

@ChristophWurst Psalm errors have been addressed in the last commit.
Also, All commits are squashed into one commit.

@skjnldsv skjnldsv added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Feb 23, 2024
Signed-off-by: Hamid Dehnavi <[email protected]>

Refactor lib/private/ocs

Signed-off-by: Hamid Dehnavi <[email protected]>

Refactor lib/private/ocs

Co-authored-by: Faraz Samapoor <[email protected]>
Signed-off-by: Hamid Dehnavi <[email protected]>

Add adjustments based on the review

Signed-off-by: Hamid Dehnavi <[email protected]>

replace qualifier with an import

Signed-off-by: Hamid Dehnavi <[email protected]>

refactor lib/private/OCS

Signed-off-by: Hamid Dehnavi <[email protected]>
@skjnldsv skjnldsv merged commit bc3061d into nextcloud:master Feb 23, 2024
149 of 158 checks passed
@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants