phpdoc param, return, throws formatted different
php-cs-fixer changes the phpdoc to be:
/**
* @param int $id
*
* @throws \Exception
*
* @return Collection
*/
public function getList(int $id): Collection
phpstorm reformat code changes the phpdoc to be:
/**
* @param int $id
*
* @return Collection
* @throws \Exception
*
*/
public function getList(int $id): Collection
The @param, @return and @throws order and spacing are different.
How can I get the two be produce the same result?
Please sign in to leave a comment.
For example, you can set CS Fixer as your formatter at Settings | PHP | Quality Tools