Fix phpstan

This commit is contained in:
crazywhalecc 2025-12-08 17:04:00 +08:00
parent 0db26be826
commit e004d10861
No known key found for this signature in database
GPG Key ID: 1F4BDD59391F2680

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