- Fixed a bug with Union types within methods arguments

This commit is contained in:
Dave M. 2023-02-07 16:50:16 +00:00
parent 0ba4fe3a51
commit aca093dd97
1 changed files with 1 additions and 1 deletions

View File

@ -167,7 +167,7 @@ class ObjectReflection {
$current = [
'name' => $method->getName(),
'type' => $method->hasReturnType() ? $method->getReturnType()->getName() : false,
'type' => $method->hasReturnType() && $method->getReturnType() instanceof \ReflectionNamedType ? $method->getReturnType()->getName() : false,
'constructor' => $method->isConstructor(),
'destructor' => $method->isDestructor(),
'parameters' => $parameters,