Is it possible to use the skip option for Import Names? #9253
-
Hello. As the title says, I'm trying to skips some files from being modified by the Import Names. Is it possible to do this? Kind regards! |
Beta Was this translation helpful? Give feedback.
Answered by
samsonasik
Jul 10, 2025
Replies: 1 comment 1 reply
-
Yes, you should can skip withSkip([
\Rector\PostRector\Rector\NameImportingPostRector::class => [
__DIR__ . '/some/path.php'
],
]) You can check list of post rectors on this https://github.com/rectorphp/rector/tree/main/src/PostRector/Rector |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
samsonasik
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you should can skip
NameImportingPostRector
for that, eg:You can check list of post rectors on this
https://github.com/rectorphp/rector/tree/main/src/PostRector/Rector