I need to replace all occurencies of $connection
with $link
?
I know I could do with a regexp replacement using my IDE, but I need to be able to re-run the sostitution automatically.
So I want to use rector.
Is there a way to replace a var name ? Which is the rule name?
I create a custom rule, very specific for my needs