1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Fix documentation

This commit is contained in:
Brown 2020-07-30 12:11:28 -04:00
parent a8c0d81dc1
commit 5635070ec6

View File

@ -222,15 +222,15 @@ class C {
C::foo("hello");
```
### MissingParamType
### MissingPropertyType
Running `vendor/bin/psalter --issues=MissingParamType` on
Running `vendor/bin/psalter --issues=MissingPropertyType` on
```php
<?php
class A {
public $foo;
public $bar;
public function __construct()
{
if (rand(0, 1)) {
@ -238,7 +238,7 @@ class A {
} else {
$this->foo = "hello";
}
$this->bar = "baz";
}
}
@ -255,7 +255,7 @@ class A {
public $foo;
public string $bar;
public function __construct()
{
if (rand(0, 1)) {
@ -263,7 +263,7 @@ class A {
} else {
$this->foo = "hello";
}
$this->bar = "baz";
}
}