Skip to content
Permalink
Browse files

Reflection: uses ReflectionNamedType

  • Loading branch information...
dg committed Mar 15, 2019
1 parent 818237b commit f9b35f7c752d421e6d2762ffb94935a0e97d2bfe
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Utils/Reflection.php
@@ -34,15 +34,15 @@ public static function isBuiltinType(string $type): bool
public static function getReturnType(\ReflectionFunctionAbstract $func): ?string
{
return $func->hasReturnType()
? self::normalizeType((string) $func->getReturnType(), $func)
? self::normalizeType($func->getReturnType()->getName(), $func)
: null;
}
public static function getParameterType(\ReflectionParameter $param): ?string
{
return $param->hasType()
? self::normalizeType((string) $param->getType(), $param)
? self::normalizeType($param->getType()->getName(), $param)
: null;
}

0 comments on commit f9b35f7

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.