Skip to content

Commit f79202c

Browse files
committed
Update bug-9844.php
1 parent 3d34d5f commit f79202c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,7 @@ class HelloWorld
1313
public function sayHello(string $class): void
1414
{
1515
assertType('mixed', $class::foo());
16+
assertType('mixed', $class->foo());
17+
assertType('mixed', $class?->foo());
1618
}
1719
}

0 commit comments

Comments
 (0)