eee
This commit is contained in:
+2
-3
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user