Skip to content

Incorrect behavior of RenameParamToMatchTypeRector #9233

@PhilippHandle

Description

@PhilippHandle

Bug Report

Subject Details
Rector version last dev-main
Installed as composer dependency

Minimal PHP Code Causing Issue

See https://getrector.com/demo/43075330-a82e-4071-8365-b7aca73c3f08

Responsible rules

  • RenameParamToMatchTypeRector

Expected Behavior

Rector should not change the variable if the method gets overridden from a vendor class
do(Foo $bar) -> do(Foo $foo)

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