Skip to content

Rector --only seems to interact weirdly with the cache #9538

@theofidry

Description

@theofidry

Bug Report

Subject Details
Rector version 2.2.11

Minimal PHP Code Causing Issue

While working on alice, I executed:

vendor-bin/rector/bin/rector --dry-run
vendor-bin/rector/bin/rector --only=GetDebugTypeRector --dry-run # did not show any change
vendor-bin/rector/bin/rector --only=GetDebugTypeRector --dry-run --clear-cache # showed up changes!

Expected Behaviour

I'm ensure how the cache works there, but I expect using --only=Rule to apply the rule on any relevant file, with our without a clean cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions