ONLYOFFICE / onlyoffice-nextcloud

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Nextcloud
GNU Affero General Public License v3.0
573 stars 162 forks source link

Removal of deprecated logging methods with upcoming Nextcloud 31 #1041

Closed juliusknorr closed 15 hours ago

juliusknorr commented 2 weeks ago

I noticed that the current develop branch is no longer compatible with our development branch for the upcoming Nextcloud 31 release. While we are not in beta phase yet (so some more changes might happen), there is one impactful change that could already be addressed and is backward compatible.

We removed the deprecated methods of \OCP\ILogger (deprecated since Nextcloud 20) and for that also the internal \OC::$server->getLogger() method that is still used a lot in the connector app.

The following replacements can be used:

Let me know if there are any questions.

juliusknorr commented 2 weeks ago

A quick additional note, if needed you can also setup psalm as a static analysis tool whihc can be used to check for other deprecations and use of internal methods https://docs.nextcloud.com/server/latest/developer_manual/digging_deeper/continuous_integration.html#static-analysis

LinneyS commented 15 hours ago

@juliusknorr Thank you Done 87adce08f761717f4ad7ca024b9dc1ca4c54f25e