Skip to content

Commit

Permalink
Fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
afbora committed Sep 9, 2024
1 parent e00653c commit 49cbd5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kql/Help.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 49cbd5d

Please sign in to comment.