Skip to content

Commit f630a67

Browse files
author
Jeremiah VALERIE
committed
Use \ReflectionType::getName() instead of \ReflectionType::__toString()
1 parent d59d314 commit f630a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -959,7 +959,7 @@ private static function guessArgs(\ReflectionMethod $method): array
959959

960960
private static function resolveGraphQLTypeFromReflectionType(\ReflectionType $type, array $filterGraphQLTypes = null, bool $isOptional = false): string
961961
{
962-
$sType = (string) $type;
962+
$sType = $type->getName();
963963
if ($type->isBuiltin()) {
964964
$gqlType = self::resolveTypeFromPhpType($sType);
965965
if (null === $gqlType) {

0 commit comments

Comments
 (0)