mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Utils: provide phpstan type information for testValidInstance()
This commit is contained in:
parent
a51a16a55c
commit
a78133d0e3
@ -632,6 +632,10 @@ class Utils{
|
||||
return true; //stfu operator
|
||||
}
|
||||
|
||||
/**
|
||||
* @phpstan-param class-string $className
|
||||
* @phpstan-param class-string $baseName
|
||||
*/
|
||||
public static function testValidInstance(string $className, string $baseName) : void{
|
||||
try{
|
||||
$base = new \ReflectionClass($baseName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user