Skip to content

Parameter order for optional parameters in InvokableCommandInputAttributeRector #9546

@florisluiten

Description

@florisluiten

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions