1
0
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:
Matthew Brown 2019-06-04 08:45:01 -04:00 committed by GitHub
parent 99a2d86661
commit 856180ac2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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