Skip to content

Commit

Permalink
restore parseClassReflection()
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jun 2, 2024
1 parent b22fabb commit 883c98d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Reflection/ReflectionParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ public function parseMethodReflection(ReflectionMethod|MethodReflection $reflect
return $classLike->getMethod($reflectionMethod->getName());
}

/**
* @api used by extensions
*/
public function parseClassReflection(ClassReflection $classReflection): ?ClassLike
{
$fileName = $classReflection->getFileName();
if ($fileName === null) {
return null;
}

return $this->parseFilenameToClass($fileName);
}

private function parseNativeClassReflection(ReflectionClass|ClassReflection $reflectionClass): ?ClassLike
{
$fileName = $reflectionClass->getFileName();
Expand Down

0 comments on commit 883c98d

Please sign in to comment.