Skip to content

Constructor property promotion incorrectly formatted #176

@kanlukasz

Description

@kanlukasz

Before formatting:

image

After formatting:

image

Code snippet for tests:

class Tasks
{
    public function __construct(
        private string $task,
        private string $stop
    ) {
        $this->task = $task;
    }

    private function getTask()
    {
        return $this->task;
    }
}

new Tasks('Do something', 'or stop');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions