Skip to content

Commit 3f98a78

Browse files
committed
Update bug-9844.php
1 parent 86d1354 commit 3f98a78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tests/PHPStan/Analyser/nsrt/bug-9844.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ class HelloWorld
1010
/**
1111
* @param class-string $class
1212
*/
13-
public function sayHello(string $class, string $method): void
13+
public function sayHello(string $class, string $method, string $property): void
1414
{
1515
assertType('mixed', $class::foo());
1616
assertType('mixed', $class->foo());
1717
assertType('mixed', $class?->foo());
1818
assertType('mixed', $class::$method());
19+
assertType('mixed', $class->$property);
1920
}
2021
}

0 commit comments

Comments
 (0)