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

Migrate away from ILogger in encryption #39065

Merged
merged 3 commits into from
Aug 8, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Jun 29, 2023

Migrate away from ILogger in encryption and switch to constructor parameter promotion in concerned classes.

See #32127

Checklist

@come-nc come-nc self-assigned this Jun 29, 2023
@come-nc come-nc added the 3. to review Waiting for reviews label Jun 29, 2023
@come-nc come-nc added this to the Nextcloud 28 milestone Jun 29, 2023
@come-nc come-nc mentioned this pull request Jun 29, 2023
24 tasks
@come-nc come-nc requested review from a team, ArtificialOwl, icewind1991, nfebe and artonge and removed request for a team June 29, 2023 13:44
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

Psalm found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

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.

Logger migration looks consistent to me, left inline comments about code comments and type hinting.

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.

Sorry I did not mention all the hint improvements, I guess if you are feeling good you can amend the latest improvements to last commit.

Thanks!

apps/encryption/lib/Crypto/Crypt.php Outdated Show resolved Hide resolved
apps/encryption/lib/Crypto/Crypt.php Outdated Show resolved Hide resolved
apps/encryption/lib/Crypto/Crypt.php Outdated Show resolved Hide resolved
apps/encryption/lib/Crypto/Crypt.php Outdated Show resolved Hide resolved
apps/encryption/lib/Crypto/Crypt.php Outdated Show resolved Hide resolved
@@ -64,85 +59,44 @@ class Encryption implements IEncryptionModule {
/** @var string */
private $user;

/** @var array */
private $owner;
private array $owner;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it the only one getting a type?

@come-nc come-nc force-pushed the fix/remove-ilogger-uses-in-encryption branch 2 times, most recently from 7b515c1 to b1a7d07 Compare August 3, 2023 12:26
@come-nc come-nc force-pushed the fix/remove-ilogger-uses-in-encryption branch from b1a7d07 to 3e176f5 Compare August 8, 2023 07:14
@come-nc come-nc merged commit e232cd8 into master Aug 8, 2023
34 of 36 checks passed
@come-nc come-nc deleted the fix/remove-ilogger-uses-in-encryption branch August 8, 2023 14:52
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants