mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
e6aa63731d
Fixes vimeo/psalm#3166
15 lines
336 B
Markdown
15 lines
336 B
Markdown
# 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
|
|
<?php
|
|
|
|
/**
|
|
* @param string $legacy_param was renamed to $newParam
|
|
*/
|
|
function f(string $newParam): string {
|
|
return strtolower($newParam);
|
|
}
|
|
```
|