Skip to content

[AutoImport] Do not rename different namespaced function on auto import + RenameFunctionRector#7214

Merged
samsonasik merged 3 commits intomainfrom
skip-diff
Sep 4, 2025
Merged

[AutoImport] Do not rename different namespaced function on auto import + RenameFunctionRector#7214
samsonasik merged 3 commits intomainfrom
skip-diff

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Sep 4, 2025

@samsonasik
Copy link
Member Author

Per note at rectorphp/rector#9349 (comment) , it can properly skipped if function is properly loaded

https://getrector.com/demo/785dfa4f-769d-4d5a-b9b1-c33392368277

@samsonasik samsonasik changed the title [AutoImport] Skip different namespaced function on auto import + RenameFunctionRector [AutoImport] Do not rename different namespaced function on auto import + RenameFunctionRector Sep 4, 2025
@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @wannevancamp , it just imported to use statement, but not renamed, since namespaced function is different 👍

@samsonasik
Copy link
Member Author

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

@samsonasik samsonasik merged commit 084fd1f into main Sep 4, 2025
49 checks passed
@samsonasik samsonasik deleted the skip-diff branch September 4, 2025 08:10
@TomasVotruba
Copy link
Member

👍

arshidkv12 pushed a commit to arshidkv12/rector-src that referenced this pull request Sep 4, 2025
…uto import + RenameFunctionRector (rectorphp#7214)"

This reverts commit 084fd1f.
arshidkv12 pushed a commit to arshidkv12/rector-src that referenced this pull request Sep 4, 2025
…rt + RenameFunctionRector (rectorphp#7214)

* [AutoImport] Skip different namespaced function on auto import + RenameFunctionRector

* update fixture

* Fix
arshidkv12 pushed a commit to arshidkv12/rector-src that referenced this pull request Sep 4, 2025
…uto import + RenameFunctionRector (rectorphp#7214)"

This reverts commit 084fd1f.
arshidkv12 pushed a commit to arshidkv12/rector-src that referenced this pull request Sep 4, 2025
…rt + RenameFunctionRector (rectorphp#7214)

* [AutoImport] Skip different namespaced function on auto import + RenameFunctionRector

* update fixture

* Fix
arshidkv12 pushed a commit to arshidkv12/rector-src that referenced this pull request Sep 4, 2025
…rt + RenameFunctionRector (rectorphp#7214)

* [AutoImport] Skip different namespaced function on auto import + RenameFunctionRector

* update fixture

* Fix
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.

swap explode parameters when using importNames

2 participants