Skip to content

Multiline class method parameter attributes incorrectly indented when formatting #767

@taisph

Description

@taisph

Example snippet:

<?php

final readonly class Foo
{
    public function __construct(
        #[SomeAttribute(
            bar: "hello",
            baz: "world",
        )]
        private string $foo = "",
    ) {}
}

Expected after formatting document:

image

Actual after formatting document:

image

Tested with devsense.phptools-vscode 1.55.16685

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions