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.