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 core/Command/Info, /Integrity, and /Preview #38771

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/Info, /core/Command/Integrity, and /core/Command/Preview classes by using PHP8's constructor property promotion to remove redundant lines and make the code cleaner.

@szaimen szaimen added 3. to review Waiting for reviews technical debt labels Jun 12, 2023
@szaimen szaimen added this to the Nextcloud 28 milestone Jun 12, 2023
@szaimen szaimen requested review from icewind1991, artonge, a team, ArtificialOwl and blizzz and removed request for a team June 12, 2023 15:47
@artonge artonge requested a review from a team June 19, 2023 10:27
@artonge artonge force-pushed the constructor_property_promotion_in_core_command_part7 branch from 2d3501c to ebbc7d9 Compare June 19, 2023 15:44
Faraz Samapoor added 2 commits June 20, 2023 09:30
 in core/Command/Info, /Integrity, and /Preview classes.

Signed-off-by: Faraz Samapoor <[email protected]>
@artonge artonge force-pushed the constructor_property_promotion_in_core_command_part7 branch from ebbc7d9 to b590059 Compare June 20, 2023 07:30
@artonge artonge requested a review from come-nc June 20, 2023 13:53
@artonge artonge enabled auto-merge June 20, 2023 13:56
@artonge artonge requested a review from skjnldsv June 22, 2023 10:22
@artonge artonge merged commit cbebc50 into nextcloud:master Jun 22, 2023
@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 Jun 22, 2023
@fsamapoor fsamapoor deleted the constructor_property_promotion_in_core_command_part7 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
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.

5 participants