mirror of
https://github.com/danog/psalm.git
synced 2024-12-14 10:17:33 +01:00
15 lines
271 B
Markdown
15 lines
271 B
Markdown
# InvalidDocblockParamName
|
||
|
||
Emitted when a docblock param name doesn’t match up with a named param in the function, if the param doesn’t have a type or its type is `array`.
|
||
|
||
```php
|
||
<?php
|
||
|
||
/**
|
||
* @param string[] $bar
|
||
*/
|
||
function foo(array $barb): void {
|
||
//
|
||
}
|
||
```
|