From 83f08bc1b8ee8579151f99db815cf8d9cb0b8c8d Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Sun, 25 Apr 2021 15:22:32 -0400 Subject: [PATCH] Fix property tests --- tests/PropertyTypeTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/PropertyTypeTest.php b/tests/PropertyTypeTest.php index cda33d5e8..957245660 100644 --- a/tests/PropertyTypeTest.php +++ b/tests/PropertyTypeTest.php @@ -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; }', ],