nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
26.67k stars 4k forks source link

Investigate using Rector for porting away from internal deprecated methods #28059

Open CarlSchwan opened 3 years ago

CarlSchwan commented 3 years ago

Rector is a nice tool that allows to easily refactor a codebase using rules: https://github.com/rectorphp/rector. This is often used in the Symfony and Laravel communities. Currently, we have a lot of deprecated API usage in the core apps, we should investigate if it would be a good idea to create rector rules for Nextcloud, this would allow us to port away from deprecated methods faster but also this could be helpful for third parties apps by reducing the maintenance cost for third parties developers and bringing updated to the users faster.

zak39 commented 1 year ago

I would add that this may make it easier to migrate code to PHP8.0, PHP8.1 and PHP8.2 using these rules :