NormalizeNamespaceByPSR4ComposerAutoloadRector: Replace references correctly
Previously, NormalizeNamespaceByPSR4ComposerAutoloadRector did not update references to other normalized classes properly. This change fixes that by recording the renames using RenamedClassesDataCollector.
Supersedes https://github.com/rectorphp/rector-src/pull/2482
Do you need help with this one? It seems almost finished :slightly_smiling_face:
I have yet to find time to investigate why it still does not work. Not sure when I will be able to work on this.
@jtojnar We'd love to have this feature in Rector :)
What is missing here to make CI pass?
I would expect the code to work as is so there is something wrong with my assumptions.
Unfortunately, I still have not found a time to dive into Rector innards to learn how rules are interleaved, and how RenamedClassesDataCollector really interacts with namespaces that are modified.
Closing as the buggy rule is now removed to avoid causing harm.