Skip to content

[trav] Narrow Skipper::shouldSkipRectorAndFile() to accept Rector object only - #8598

Merged
TomasVotruba merged 1 commit into
mainfrom
tv-skip-rector-object-arg
Oct 10, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
tv-skip-rector-object-arg

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Renames Skipper::shouldSkipElementAndFilePath() to shouldSkipRectorAndFile() and narrows its first argument from string|object to object, so it only takes a Rector instance - not a plain class-string.

  • PostFileProcessor now injects RenameClassRector and passes the instance instead of RenameClassRector::class.
  • Tests updated to pass element objects instead of class-strings.

matchSkip() keeps its string|object signature for callers that still resolve by class-string.

@TomasVotruba TomasVotruba changed the title Narrow Skipper::shouldSkipRectorAndFile() to accept Rector object only [trav] Narrow Skipper::shouldSkipRectorAndFile() to accept Rector object only Oct 10, 2026
@TomasVotruba
TomasVotruba merged commit a1c4d90 into main Oct 10, 2026
49 checks passed
@TomasVotruba
TomasVotruba deleted the tv-skip-rector-object-arg branch October 10, 2026 17:25
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.

1 participant