1
0
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:
Matt Brown 2021-04-25 15:22:32 -04:00
parent 67c5dc3c79
commit 83f08bc1b8

View File

@ -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;
}',
],