This commit is contained in:
2023-12-18 17:10:34 +08:00
parent 950d23131e
commit 048f49b27f
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -98,8 +98,7 @@ class Scanner extends Component
return;
}
$object = $this->container->parse($class);
$methods = $this->container->getReflectionClass($class);
foreach ($methods->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
foreach ($reflect->getMethods(ReflectionMethod::IS_PUBLIC) as $method) {
if ($method->isStatic() || $method->getDeclaringClass()->getName() != $class) {
continue;
}