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
rectorphp/rector-symfony#899
Expected Behaviour
Imo, the optional parameters should always be listed last.