From 18f8ae2162475a8ce2425da3e3590e2810f79ae2 Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 20 Dec 2023 21:42:57 +0800 Subject: [PATCH] eee --- src/Handler.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index 5f536b0..d81c1d5 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -62,10 +62,9 @@ class Handler implements RequestHandlerInterface * @param $reflectionType * @return string */ - protected function returnType($reflectionType): string + protected function returnType(ReflectionMethod $reflectionType): string { - var_dump($reflectionType->getName()); - return match ($reflectionType->getName()) { + return match ($reflectionType->getReturnType()->getName()) { 'array' => ArrayFormat::class, 'mixed', 'object' => MixedFormat::class, 'int', 'string', 'bool' => OtherFormat::class,