diff --git a/docs/manipulating_code/fixing.md b/docs/manipulating_code/fixing.md index 6295c7ef0..08e26835d 100644 --- a/docs/manipulating_code/fixing.md +++ b/docs/manipulating_code/fixing.md @@ -222,6 +222,53 @@ class C { C::foo("hello"); ``` +### MissingParamType + +Running `vendor/bin/psalter --issues=MissingParamType` on +```php +foo = 5; + } else { + $this->foo = "hello"; + } + + $this->bar = "baz"; + } +} +``` + +gives + +```php +foo = 5; + } else { + $this->foo = "hello"; + } + + $this->bar = "baz"; + } +} +``` + ### MismatchingDocblockParamType Given