Skip to content

Migrate away from ILogger in encryption - #39065

Merged
come-nc merged 3 commits into
masterfrom
fix/remove-ilogger-uses-in-encryption
Aug 8, 2023
Merged

Migrate away from ILogger in encryption#39065
come-nc merged 3 commits into
masterfrom
fix/remove-ilogger-uses-in-encryption

Conversation

@come-nc

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

Copy link
Copy Markdown
Contributor

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, artonge, icewind1991 and nfebe and removed request for a team June 29, 2023 13:44

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

Copy link
Copy Markdown

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.

Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated

@nfebe nfebe left a comment

Copy link
Copy Markdown
Contributor

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.

@nfebe nfebe left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated
Comment thread apps/encryption/lib/Crypto/Crypt.php Outdated

/** @var array */
private $owner;
private array $owner;

Copy link
Copy Markdown
Collaborator

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 added 3 commits August 8, 2023 09:14
And modernize code a bit

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…tructors

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@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
@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.

4 participants