`MultilinePromotedPropertiesFixer`: keep blank lines between properties
Closed this issue · 4 comments
gharlan commented
I have some classes with long descriptions on each property:
class Foo
{
public function __construct(
/**
* Here long
* description
*/
public string $a,
/**
* Here long
* description
*/
public string $b,
/**
* Here long
* description
*/
public string $c,
) {}
}
The MultilinePromotedPropertiesFixer
removes the blank lines between these properties.
What do you prefer?
- Keep it as it is
- never remove blank lines, only ensure that there is at least one line break between promoted properties
- add a new config for this
gharlan commented
If you are ok with 2 or 3, I would like to create a pull request for this.
kubawerlos commented
Hi @gharlan, in the config approach do you mean to decide whether to remove a blank line or keep it?
gharlan commented
Yes, e.g. keep_blank_lines
kubawerlos commented
Sounds like a nice enhancement, go for it 👍🏼