This commit is contained in:
2023-12-20 21:42:57 +08:00
parent a51f6cefc9
commit 18f8ae2162
+2 -3
View File
@@ -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,