-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Fix some php 8 warnings #26494
Fix some php 8 warnings #26494
Conversation
PHP 8 shows deprecation warnings about this, see #25806 Removes the "default" values, as they actually are required parameters anyway. Signed-off-by: Richard de Boer <[email protected]>
…eger PHP 8 shows deprecation warnings about this, see #25806 Signed-off-by: Richard de Boer <[email protected]>
Before we just turned it off and @Suppressed the error if ob was not active. In PHP 8 this error is no longer suppressed, so try to not cause it at all. Signed-off-by: Richard de Boer <[email protected]>
Rebased onto master. ( |
@MorrisJobke @kesselb @acsfer Review Please :) |
@rigrig is this already part of the list [PHP] Error: Required parameter $mode follows optional parameter $a at /var/www/nextcloud/core/Controller/PreviewController.php#155 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code makes sense and cleans it nicely up 👍
Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22 |
/backport to stable21 |
Thank you! |
Fixes PHP 8 warnings mentioned in #25806:
This only fixes the PHP 8 warnings, not deprecation warnings by
3rdparty
code.