junstyle / vscode-php-cs-fixer

PHP CS Fixer extension for VS Code
https://marketplace.visualstudio.com/items?itemName=junstyle.php-cs-fixer
MIT License
357 stars 45 forks source link

php-cs-fixer removes @param from docblocks #129

Closed pvettori closed 4 years ago

pvettori commented 4 years ago

php-cs-fixer removes @param from docblocks f they don't have a description. Not sure if this is a wanted behaviour but it wasn't like this a few months ago.

Initial code:

/**
 * Undocumented function
 *
 * @param array $array
 * @return boolean
 */
function test(array $array): bool {}

after fixing:

/**
 * Undocumented function.
 *
 * @return boolean
 */
function test(array $array): bool
{
}

desired:

/**
 * Undocumented function.
 *
 * @param array $array
 *
 * @return boolean
 */
function test(array $array): bool
{
}