1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/docs/running_psalm/issues/UnusedDocblockParam.md

336 B

UnusedDocblockParam

Emitted when --find-dead-code is turned on and a parameter specified in docblock does not have a corresponding parameter in function / method signature.

<?php

/**
 * @param string $legacy_param was renamed to $newParam
 */
function f(string $newParam): string {
    return strtolower($newParam);
}