kubawerlos/php-cs-fixer-custom-fixers

Feature Request: Add MultilinePromotedPropertiesWithAttributesFixer

Opened this issue · 1 comments

Currently I'm only able to get :

public function __construct(
    #[Required,
    StringType,
    In(['primary', 'secondary'])]
    public string $type,

What I'd like it it to just be:

public function __construct(
    #[Required, StringType, In(['primary', 'secondary'])]
    public string $type,
)

or even:

public function __construct(
    #[
          Required, 
          StringType, 
          In(['primary', 'secondary'])
    ]
    public string $type,
)

Hi @patrickcurl, what would you say for a fixer to make attribute single line, similar to single_line_throw?