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

Uses PHP8's constructor property promotion in core/Command/Db classes. #38764

Conversation

fsamapoor
Copy link
Member

Following #38636, #38637, and #38638 PRs, I have made the required adjustments to the /core/Command/ namespace as well.

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

This PR refactors /core/Command/Db classes by using PHP8's constructor property promotion to remove redundant lines and make the code cleaner.

@szaimen szaimen added this to the Nextcloud 28 milestone Jun 12, 2023
@szaimen szaimen added 3. to review Waiting for reviews technical debt labels Jun 12, 2023
@szaimen szaimen requested review from ChristophWurst, come-nc, a team, ArtificialOwl and icewind1991 and removed request for a team June 12, 2023 14:40
@ChristophWurst ChristophWurst removed their request for review June 12, 2023 14:56
@ChristophWurst
Copy link
Member

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

That is highly appreciated 🙏

core/Command/Db/ConvertFilecacheBigInt.php Outdated Show resolved Hide resolved
core/Command/Db/ConvertType.php Outdated Show resolved Hide resolved
core/Command/Db/Migrations/MigrateCommand.php Outdated Show resolved Hide resolved
core/Command/Db/Migrations/StatusCommand.php Outdated Show resolved Hide resolved
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
fsamapoor pushed a commit to fsamapoor/server that referenced this pull request Jun 13, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
@artonge artonge requested a review from a team June 19, 2023 10:27
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Faraz Samapoor and others added 5 commits June 19, 2023 12:55
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
@artonge artonge force-pushed the constructor_property_promotion_in_core_command_part2 branch from fd4ad4d to 1e8ec53 Compare June 19, 2023 10:55
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
@artonge artonge enabled auto-merge June 19, 2023 12:15
@artonge artonge merged commit 98ea74b into nextcloud:master Jun 19, 2023
37 checks passed
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 19, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 20, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 20, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
artonge pushed a commit to fsamapoor/server that referenced this pull request Jun 20, 2023
Based on:
nextcloud#38764 (comment)

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
@fsamapoor fsamapoor deleted the constructor_property_promotion_in_core_command_part2 branch November 3, 2023 12:50
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.

None yet

5 participants