Skip to content

Post Rectors are not listed in the list of applied rules in the rectorsWithLineChanges list #9373

@simonschaufi

Description

@simonschaufi

Bug Report

Subject Details
Rector version 2.1.7

I have code where the namespaces can't be imported (in php code and docblocks) but I don't want to skip the whole file. When I dry run rector I see that rector wants to import the namespaces but it doesn't print the list of applied rules because they come from post rectors. Even if post rectors have a special treatment, I would still like to know when they are applied.

Minimal PHP Code Causing Issue

https://getrector.com/demo/70937e5b-faed-4212-9004-c59ffc2b4a73

Expected Behaviour

Print a list of applied post rectors

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