Skip to content

ControllerMethodInjectionToConstructorRector bad behaviour #9556

@amalricBzh

Description

@amalricBzh

Bug Report

Subject ControllerMethodInjectionToConstructorRector move parameter to constructor
Rector version 2.2.14

Php 8.4 / Symfony 7.4 : a user management class

See https://getrector.com/demo/9f026da1-792e-4b6b-b505-30d19b660afa

Expected Behaviour

The $user parameter should not be moved to constructor.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions