-
-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Labels
c-formatterPHP code reformatting and style rulesPHP code reformatting and style rulest-enhancementNew feature or requestNew feature or request
Description
Feature
Would be really useful if you could add an option that would allow you to specify how multiple attributes are formatted, either stacked or grouped. Ideally also whether to break multiple grouped attributes, regardless of the print-width setting.
Example
<?php
// grouped, multi-line
final class Market extends ConfigEntity
{
public function __construct(
#[
Id,
FromConfigArray('id')
]
protected EntityIdInterface $id,
) {}
}
// grouped, singe-line (following print-width)
final class Market extends ConfigEntity
{
public function __construct(
#[Id, FromConfigArray('id')]
protected EntityIdInterface $id,
) {}
}
// stacked
final class Market extends ConfigEntity
{
public function __construct(
#[Id]
#[FromConfigArray('id')]
protected EntityIdInterface $id,
) {}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
c-formatterPHP code reformatting and style rulesPHP code reformatting and style rulest-enhancementNew feature or requestNew feature or request