From 49cbd5d1f105982e57a3ae5b800ae6b25a52b1a1 Mon Sep 17 00:00:00 2001 From: Ahmet Bora Date: Mon, 9 Sep 2024 14:19:59 +0300 Subject: [PATCH] Fix ci --- src/Kql/Help.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kql/Help.php b/src/Kql/Help.php index faa6f21..1bae4a8 100644 --- a/src/Kql/Help.php +++ b/src/Kql/Help.php @@ -57,13 +57,13 @@ public static function forArray(array $array): array public static function forMethod(object $object, string $method): array { $reflection = new ReflectionMethod($object, $method); - $returns = $reflection->getReturnType()?->getName(); + $returns = $reflection->getReturnType() ? (string)$reflection->getReturnType(): null; $params = []; foreach ($reflection->getParameters() as $param) { $name = $param->getName(); $required = $param->isOptional() === false; - $type = $param->hasType() ? $param->getType()->getName() : null; + $type = $param->hasType() ? (string)$param->getType() : null; $default = null; if ($param->isDefaultValueAvailable()) {