rector icon indicating copy to clipboard operation
rector copied to clipboard

Parameter order for optional parameters in InvokableCommandInputAttributeRector

Open florisluiten opened this issue 2 months ago • 0 comments

Bug Report

Subject Details
Rector version 2.2.7

Using InvokableCommandInputAttributeRector, it seems that optional and required parameters are mixed depending on where they appear in the code. This may lead to a parameterlist that has optional parameters before required parameters.

Minimal PHP Code Causing Issue

https://github.com/rectorphp/rector-symfony/pull/899

Expected Behaviour

Imo, the optional parameters should always be listed last.

florisluiten avatar Dec 09 '25 12:12 florisluiten