We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e00653c commit 49cbd5dCopy full SHA for 49cbd5d
src/Kql/Help.php
@@ -57,13 +57,13 @@ public static function forArray(array $array): array
57
public static function forMethod(object $object, string $method): array
58
{
59
$reflection = new ReflectionMethod($object, $method);
60
- $returns = $reflection->getReturnType()?->getName();
+ $returns = $reflection->getReturnType() ? (string)$reflection->getReturnType(): null;
61
$params = [];
62
63
foreach ($reflection->getParameters() as $param) {
64
$name = $param->getName();
65
$required = $param->isOptional() === false;
66
- $type = $param->hasType() ? $param->getType()->getName() : null;
+ $type = $param->hasType() ? (string)$param->getType() : null;
67
$default = null;
68
69
if ($param->isDefaultValueAvailable()) {
0 commit comments