You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have several rule configurations that are loaded depending on the TYPO3 version. Each can potentially rename classes with the RenameClassConstFetchRector. Because the method $rectorConfig->ruleWithConfiguration can only register ONE configuration with one class name, any configuration loaded for older versions is ignored as it is overwritten with the last one.
Thank you for creating a test for it. It seams to be working fine. We had a problem in our TYPO3 Rector project but probably that was before the 1.0 release of Rector with the Symfony DI Container. With the Laravel Container it seams to work fine.
I'll talk again in the team if somebody still has an issue and will let you know.
Bug Report
We have several rule configurations that are loaded depending on the TYPO3 version. Each can potentially rename classes with the
RenameClassConstFetchRector
. Because the method$rectorConfig->ruleWithConfiguration
can only register ONE configuration with one class name, any configuration loaded for older versions is ignored as it is overwritten with the last one.Minimal PHP Code Causing Issue
File 1:
File 2:
Expected Behaviour
Both rules should be applied but only the constants from OldClass2 are replaced.
The text was updated successfully, but these errors were encountered: