Skip to content

Include related classes when processing specific files #8766

Answered by samsonasik
juanariastn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

That's not possible, rector only work on target analyzed file, if you want multi files, then both files need to be included, on project basis, you can include by dirs collection:

withPaths([
     __DIR__ . '/src',
     __DIR__ . '/test'
])

For some circumstance, you may need to use --clear-cache :)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by samsonasik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants