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

Config  rector.php
Rector version: @ released at 2023-02-07 23:03