Skip to content

RectorConfigBuilderRector: import calls not migrated #9263

@staabm

Description

@staabm

Bug Report

Subject Details
Rector version e.g. v2.1.1 (invoke vendor/bin/rector --version)

RectorConfigBuilderRector seems to miss some cases

Minimal PHP Code Causing Issue

RectorConfig->import() prevents migration of config:

https://getrector.com/demo/f0a99006-7838-45b8-ac68-28e0739bf034

same problem with RectorConfig->importNames():

https://getrector.com/demo/b6a5c575-0d3e-482e-ab05-f4147f3d3992

and also same problem with RectorConfig->removeUnusedImports():

https://getrector.com/demo/8be82cd5-a074-4555-b2f2-1a6ec376ea43

Expected Behaviour

example cases should be migrated to new config format

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