We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f79202c commit 86d1354Copy full SHA for 86d1354
1 file changed
tests/PHPStan/Analyser/nsrt/bug-9844.php
@@ -10,10 +10,11 @@ class HelloWorld
10
/**
11
* @param class-string $class
12
*/
13
- public function sayHello(string $class): void
+ public function sayHello(string $class, string $method): void
14
{
15
assertType('mixed', $class::foo());
16
assertType('mixed', $class->foo());
17
assertType('mixed', $class?->foo());
18
+ assertType('mixed', $class::$method());
19
}
20
0 commit comments