Skip to content

Named argument default causes improper formatting #408

@godismyjudge95

Description

@godismyjudge95

Example function:

function foo($label, $default = null) {
}

example function call:

foo(
	label: 'bar',
	default: 'baz',
);

which then gets reformatted like so:

foo(
	label: 'bar',
default
	: 'baz',
);

I would imagine there are many other keywords which I believe are valid named arguments but would cause the same issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions