Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoImport] Allow auto import just renamed @var only docblock on RenameClassRector without removeUnusedImports() enabled #5220

Merged
merged 10 commits into from
Nov 3, 2023

Conversation

samsonasik
Copy link
Member

When importNames() enabled, but removeUnusedImports() not enabled, the only renamed @var should be allowed t be imported.

…ameClassRector without removeUnusedImports() enabled
@samsonasik
Copy link
Member Author

Run Rector twice apply the change:

First: https://getrector.com/demo/bab1d1af-8d60-4203-8b0b-997ff7446690 (only rename docblock)
twice: https://getrector.com/demo/671bc700-bb1c-4e15-9f00-55e8b733d8c1 (apply auto import)

so it not priority right now.

@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik
Copy link
Member Author

Added another fixture for @var short class ca0571e

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback to test ;)

@samsonasik samsonasik merged commit 2fac959 into main Nov 3, 2023
41 checks passed
@samsonasik samsonasik deleted the auto-import-doc-rename branch November 3, 2023 08:36
@TomasVotruba
Copy link
Member

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants