eee
This commit is contained in:
+2
-3
@@ -62,10 +62,9 @@ class Handler implements RequestHandlerInterface
|
|||||||
* @param $reflectionType
|
* @param $reflectionType
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
protected function returnType($reflectionType): string
|
protected function returnType(ReflectionMethod $reflectionType): string
|
||||||
{
|
{
|
||||||
var_dump($reflectionType->getName());
|
return match ($reflectionType->getReturnType()->getName()) {
|
||||||
return match ($reflectionType->getName()) {
|
|
||||||
'array' => ArrayFormat::class,
|
'array' => ArrayFormat::class,
|
||||||
'mixed', 'object' => MixedFormat::class,
|
'mixed', 'object' => MixedFormat::class,
|
||||||
'int', 'string', 'bool' => OtherFormat::class,
|
'int', 'string', 'bool' => OtherFormat::class,
|
||||||
|
|||||||
Reference in New Issue
Block a user