Skip to content

Format Feature Request: Trailing Comma for multi-line code #384

@still-dreaming-1

Description

@still-dreaming-1

PHP supports trailing commas in many different parts of the language now.

There could be different options for it to support this for function parameters, function arguments, arrays, etc. I only want trailing commas in multi-line code, such as when calling a function and placing each argument on a separate line.

One advantage of standardizing on this code style is, when you add an extra argument to a multi-line function call for example, this allows the git commit and diffs to only have/show 1 line changed instead of 2.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions