- Fixed a bug with Union types within methods arguments
This commit is contained in:
parent
0ba4fe3a51
commit
aca093dd97
|
@ -167,7 +167,7 @@ class ObjectReflection {
|
||||||
|
|
||||||
$current = [
|
$current = [
|
||||||
'name' => $method->getName(),
|
'name' => $method->getName(),
|
||||||
'type' => $method->hasReturnType() ? $method->getReturnType()->getName() : false,
|
'type' => $method->hasReturnType() && $method->getReturnType() instanceof \ReflectionNamedType ? $method->getReturnType()->getName() : false,
|
||||||
'constructor' => $method->isConstructor(),
|
'constructor' => $method->isConstructor(),
|
||||||
'destructor' => $method->isDestructor(),
|
'destructor' => $method->isDestructor(),
|
||||||
'parameters' => $parameters,
|
'parameters' => $parameters,
|
||||||
|
|
Loading…
Reference in New Issue