Skip to content

Commit 49cbd5d

Browse files
committed
Fix ci
1 parent e00653c commit 49cbd5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Kql/Help.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,13 @@ public static function forArray(array $array): array
5757
public static function forMethod(object $object, string $method): array
5858
{
5959
$reflection = new ReflectionMethod($object, $method);
60-
$returns = $reflection->getReturnType()?->getName();
60+
$returns = $reflection->getReturnType() ? (string)$reflection->getReturnType(): null;
6161
$params = [];
6262

6363
foreach ($reflection->getParameters() as $param) {
6464
$name = $param->getName();
6565
$required = $param->isOptional() === false;
66-
$type = $param->hasType() ? $param->getType()->getName() : null;
66+
$type = $param->hasType() ? (string)$param->getType() : null;
6767
$default = null;
6868

6969
if ($param->isDefaultValueAvailable()) {

0 commit comments

Comments
 (0)