Php-cs-fixer: Fixer request: Unify multiline vs single-line PHPDoc for properties

Created on 14 Mar 2018  路  2Comments  路  Source: FriendsOfPHP/PHP-CS-Fixer

There are two competing styles for PHPDoc @var annotations on class properties:

1.

/**
 * @var string
 */
private $name;

2.

/** @var string */
private $name;

It would be great to have a fixer configuring which one should be used and converting one to the other.

kinfeature request

Most helpful comment

I'll add it to my TODO list and would see if I can create a useful PR. I'm very keen to fixing that in our app and enforcing it so I'll give it a go.

All 2 comments

I'm closing this one as it's a duplicate of #2646 , and sadly #3061 and #3300
Would you mind to propose a PR to bring this feature alive, @hkdobrev ?

I'll add it to my TODO list and would see if I can create a useful PR. I'm very keen to fixing that in our app and enforcing it so I'll give it a go.

Was this page helpful?
0 / 5 - 0 ratings