We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75c82a commit fd81195Copy full SHA for fd81195
src/Utils/Reflection.php
@@ -34,15 +34,15 @@ public static function isBuiltinType(string $type): bool
34
public static function getReturnType(\ReflectionFunctionAbstract $func): ?string
35
{
36
return $func->hasReturnType()
37
- ? self::normalizeType((string) $func->getReturnType(), $func)
+ ? self::normalizeType($func->getReturnType()->getName(), $func)
38
: null;
39
}
40
41
42
public static function getParameterType(\ReflectionParameter $param): ?string
43
44
return $param->hasType()
45
- ? self::normalizeType((string) $param->getType(), $param)
+ ? self::normalizeType($param->getType()->getName(), $param)
46
47
48
0 commit comments