mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-09 09:55:37 +08:00
Fix phpstan
This commit is contained in:
@@ -221,6 +221,10 @@ class PackageLoader
|
|||||||
self::$packages[$pkg->getName()] = $pkg;
|
self::$packages[$pkg->getName()] = $pkg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset($instance_class)) {
|
||||||
|
$instance_class = $refClass->newInstance();
|
||||||
|
}
|
||||||
|
|
||||||
// parse non-package available attributes
|
// parse non-package available attributes
|
||||||
foreach ($refClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
|
foreach ($refClass->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) {
|
||||||
$method_attributes = $method->getAttributes();
|
$method_attributes = $method->getAttributes();
|
||||||
|
|||||||
Reference in New Issue
Block a user