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
After PR rectorphp/rector-src#784 , I think ClassConstFetch should be removed too if there is no conflict with use alias, it only make sense to have alias only if has conflict name in use statement.
rectorphp/rector-src@7df4894 [Performance][DeadCode] Early check has private methods before find() on dynamic call checks on RemoveUnusedPrivateMethodRector (#5687)
Bug Report
RemoveUnusedAliasRector
removes aliases even though they are referenced in a class constant.Minimal PHP Code Causing Issue
Expected Behaviour
The alias should not be removed.
The text was updated successfully, but these errors were encountered: