Skip to content

RemoveParentDelegatingClassMethodRector removes different annotations on child classes #9887

Description

@raphaelincert

Bug Report

Subject Details
Rector version 2.6.6

Hi,
i use annotations for routing & generating an openapi spec.
If i have two controllers with different method annotations that are only calling the parent method, both methods including the different annotations are removed.

Minimal PHP Code Causing Issue

https://getrector.com/demo/02de4cfe-502e-46d7-b541-9c9bcc87f62d

Expected Behaviour

Either no change or maybe move all annotations from child classes that are the same for every child to the parent.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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