Skip to content

Commit 86d1354

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

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,10 +10,11 @@ class HelloWorld
1010
/**
1111
* @param class-string $class
1212
*/
13-
public function sayHello(string $class): void
13+
public function sayHello(string $class, string $method): void
1414
{
1515
assertType('mixed', $class::foo());
1616
assertType('mixed', $class->foo());
1717
assertType('mixed', $class?->foo());
18+
assertType('mixed', $class::$method());
1819
}
1920
}

0 commit comments

Comments
 (0)