diff --git a/src/Infer/Reflector/MethodReflector.php b/src/Infer/Reflector/MethodReflector.php index eff462ae..f4744097 100644 --- a/src/Infer/Reflector/MethodReflector.php +++ b/src/Infer/Reflector/MethodReflector.php @@ -95,6 +95,6 @@ public function beforeTraverse(array $nodes): ?array public function getClassReflector(): ClassReflector { - return ClassReflector::make($this->className); + return ClassReflector::make($this->getReflection()->class); } }