rector
rector copied to clipboard
Parameter order for optional parameters in InvokableCommandInputAttributeRector
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.