mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add MissingParamType fix documentation
This commit is contained in:
parent
99a2d86661
commit
856180ac2a
@ -178,6 +178,33 @@ function foo() {
|
||||
}
|
||||
```
|
||||
|
||||
### MissingParamType
|
||||
|
||||
Running `vendor/bin/psalter --issues=MissingReturnType` on
|
||||
|
||||
```php
|
||||
class C {
|
||||
public static function foo($s) : void {
|
||||
echo $s;
|
||||
}
|
||||
}
|
||||
C::foo("hello");
|
||||
```
|
||||
|
||||
gives
|
||||
|
||||
```php
|
||||
class C {
|
||||
/**
|
||||
* @param string $s
|
||||
*/
|
||||
public static function foo($s) : void {
|
||||
echo $s;
|
||||
}
|
||||
}
|
||||
C::foo("hello");
|
||||
```
|
||||
|
||||
### MismatchingDocblockParamType
|
||||
|
||||
Given
|
||||
|
Loading…
Reference in New Issue
Block a user