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
Optional parameter $knownIds declared before required parameter $partialOnly is implicitly treated as a required parameter at /config/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php#111 #9602
Comments
I have the same error message in my logs with NC 28 and can't tell where they are coming from. It is a freshly new (1 week old) NC installation. NC 28.0.4 Detailed log entry:
|
You have upgraded to PHP8: https://php.watch/versions/8.0/deprecate-required-param-after-optional |
It is unexpected to see this logged with level 3 (error). Deprecations should only show up at loglevel=0 (debug) |
I did not upgrade. The AIO package for Plesk is coming with 8.1.2 and PHP7 is EOL since quite a time. Even 8.1. is deprecated already according to the system requirements. https://docs.nextcloud.com/server/latest/admin_manual/installation/system_requirements.html |
I was curious what changed in our code that introduced this specifically in 3.6.0 and it was #9420 (somewhat ironically). The deprecation changed to an error in PHP 8.1.0 so the two scenarios collided in 3.6.0:
|
So is there something I can do to get rid of these failures as a workaround? |
I have it too on a fresh installed Nextcloud 29 on Debian 12 with PHP 8.3 Nextcloud Hub 8 (29.0.0) |
Steps to reproduce
After the update to nextcloud 29 I see this message a lot in the logs.
Expected behavior
no PHP error in the logs
Actual behavior
The following message is shown in the logs:
"Optional parameter $knownIds declared before required parameter $partialOnly is implicitly treated as a required parameter at /config/www/nextcloud/apps/mail/lib/Service/Sync/SyncService.php#111"
Mail app version
3.6.0
Mailserver or service
selfhosted
Operating system
docker
PHP engine version
None
Web server
None
Database
None
Additional info
No response
The text was updated successfully, but these errors were encountered: