Skip to content

RemoveUnusedPrivateMethodParameterRector removes variadic argument #9214

@kamil-tekiela

Description

@kamil-tekiela

Bug Report

Subject Details
Rector version Rector 2.0.18

When executing RemoveUnusedPrivateMethodParameterRector it removes parameters that are kept due to the method being called with variadic arguments. These parameters, even though unused, are necessary.

Minimal PHP Code Causing Issue

https://getrector.com/demo/fa0bcd08-8a17-46de-9a61-99275015321a

Expected Behaviour

Ideally, the rules should skip when variadic arguments are used.

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