We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0db26be commit e004d10Copy full SHA for e004d10
src/StaticPHP/Package/PackageLoader.php
@@ -221,6 +221,10 @@ public static function loadFromClass(mixed $class): void
221
self::$packages[$pkg->getName()] = $pkg;
222
}
223
224
+ if (!isset($instance_class)) {
225
+ $instance_class = $refClass->newInstance();
226
+ }
227
+
228
// parse non-package available attributes
229
foreach ($refClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
230
$method_attributes = $method->getAttributes();
0 commit comments