Fix phpstan

This commit is contained in:
crazywhalecc
2025-12-08 17:04:00 +08:00
parent 0db26be826
commit e004d10861

View File

@@ -221,6 +221,10 @@ class PackageLoader
self::$packages[$pkg->getName()] = $pkg;
}
if (!isset($instance_class)) {
$instance_class = $refClass->newInstance();
}
// parse non-package available attributes
foreach ($refClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
$method_attributes = $method->getAttributes();