mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
Fix property tests
This commit is contained in:
parent
67c5dc3c79
commit
83f08bc1b8
@ -2397,6 +2397,7 @@ class PropertyTypeTest extends TestCase
|
||||
}
|
||||
|
||||
function takesFoo(?Foo $foo, string $b) : void {
|
||||
/** @psalm-suppress MixedArgument */
|
||||
echo $foo->{$b} ?? null;
|
||||
}'
|
||||
],
|
||||
@ -2422,6 +2423,7 @@ class PropertyTypeTest extends TestCase
|
||||
}
|
||||
|
||||
function accessOnVar(?Foo $bar, string $b) : void {
|
||||
/** @psalm-suppress MixedArgument */
|
||||
echo $bar->{$b} ?? null;
|
||||
}',
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user