Here is my example code where i am having error while using phpfmt [code formatter].
function ( int | float...$numbers ): int | float {
return array_sum( $numbers );
};
Here as we can see in the function parameter i am using Variable-length argument lists ... using this token, i am also declare the type of the variable.
Now when i am trying to save it, phpfmt code formatter make the type and ... token together which i don't want, it is create confusion for other code readers.
How can i fix that issue please help me with this as i am new to php coding.
I am using vscode as my code editor.
Here i am also provide my phpfmt vscode settings.
"editor.formatOnSave": true,
"phpfmt.passes": ["AlignDoubleArrow", "SpaceAroundParentheses"],
"phpfmt.psr2": false,
I go through the phpfmt command list but i can't find any specific command for that.
I am also watch some phpfmt videos but those all are similar just showing the installation process.