Skip to content

Formatter: Do not remove whitespace between readonly and type #433

@Morgy93

Description

@Morgy93

Hello,

<?php

class foo
{
    public function __construct(
        private readonly \First\String $first,
        private readonly \Second\Int $second,
    ) {
    }
}

is formatted to

private readonly\First\String $first,
private readonly\Second\Int $second,

The whitespace after readonly is removed.
I cannot find a setting to change that behavior.

Any help?

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