Utils: provide phpstan type information for testValidInstance()

This commit is contained in:
Dylan K. Taylor 2020-04-15 12:12:18 +01:00
parent a51a16a55c
commit a78133d0e3

View File

@ -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);