Skip to content

[AutoImport] Handle AnnotationToAttributeRector + RenameClassRector then enable auto import#5213

Merged
samsonasik merged 7 commits intomainfrom
anno-to-attribute-rename-auto-import
Oct 29, 2023
Merged

[AutoImport] Handle AnnotationToAttributeRector + RenameClassRector then enable auto import#5213
samsonasik merged 7 commits intomainfrom
anno-to-attribute-rename-auto-import

Conversation

@samsonasik
Copy link
Copy Markdown
Member

Ref https://github.com/rectorphp/rector-symfony/issues/535#issuecomment-1783983383

On auto import, when change to attribute then rename attribute name, the import removed with $rectorConfig->importNames() applied, see

https://getrector.com/demo/4c8f80f5-9050-4b6b-b58e-93034ea3d45b

@samsonasik
Copy link
Copy Markdown
Member Author

Fixed 🎉 /cc @jambonfarci @stefantalen with allow fetch name from attribute 72222b6 ,

This will require PR:

to be merged as well to work on symfony 62 set list :)

@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 3c526c9 into main Oct 29, 2023
@samsonasik samsonasik deleted the anno-to-attribute-rename-auto-import branch October 29, 2023 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants