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(Log): Use new in initializer instead of constructor body #47291

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Aug 16, 2024

Summary

PHP 8.1 allows us to now move the new into the initializer, this makes the code a bit nicer (and 3 lines shorter).

Checklist

@susnux susnux added 3. to review Waiting for reviews ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring) labels Aug 16, 2024
@susnux susnux added this to the Nextcloud 31 milestone Aug 16, 2024
PHP 8.1 allows us to now move the `new` into the initializer,
this makes the code a bit nicer (and 3 lines shorter).

Signed-off-by: Ferdinand Thiessen <[email protected]>
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

@come-nc come-nc merged commit ba9638e into master Aug 19, 2024
171 checks passed
@come-nc come-nc deleted the refactor/log-php-8-1 branch August 19, 2024 12:12
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 ♻️ refactor Refactor code (not a bug fix, not a feature just refactoring)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants