mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 17:52:45 +01:00
ea52b9d23a
While I was searching for some code, ran across these.
15 lines
269 B
Markdown
15 lines
269 B
Markdown
# InvalidDocblockParamName
|
|
|
|
Emitted when a docblock param name does not match up with a named param in the function, if the param does not have a type or its type is `array`.
|
|
|
|
```php
|
|
<?php
|
|
|
|
/**
|
|
* @param string[] $bar
|
|
*/
|
|
function foo(array $barb): void {
|
|
//
|
|
}
|
|
```
|