Skip to content

Rector removes class imports that are specified only in inline tags @see #9781

Description

@mspirkov

Bug Report

Subject Details
Rector version 2.5.2

Rector removes class imports that are specified only in inline tags @see. This happens in @param, @var, @return, and in the description of a class, method, or property.

Minimal PHP Code Causing Issue

Demo: https://getrector.com/demo/8c0c0d34-ab18-4c07-b8d5-7e3a4cb97b65

Expected Behaviour

Class imports are not deleted.

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