mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 13:25:16 +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
|
return true; //stfu operator
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @phpstan-param class-string $className
|
||||||
|
* @phpstan-param class-string $baseName
|
||||||
|
*/
|
||||||
public static function testValidInstance(string $className, string $baseName) : void{
|
public static function testValidInstance(string $className, string $baseName) : void{
|
||||||
try{
|
try{
|
||||||
$base = new \ReflectionClass($baseName);
|
$base = new \ReflectionClass($baseName);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user