Run Rector on your code to see what it can do for you:

Config  rector.php

Rector version: dev-main@e1dd37 released at 2022-12-06 17:50:13