This commit is contained in:
2023-10-17 15:55:36 +08:00
parent 891312a056
commit 521377bf8d
+1 -17
View File
@@ -19,26 +19,10 @@ use ReflectionNamedType;
class Handler implements RequestHandlerInterface
{
/**
* @var array|string[]
*/
protected array $types = [
ResponseInterface::class => ResponseInterface::class,
'array' => ArrayFormat::class,
'mixed' => MixedFormat::class,
'object' => MixedFormat::class,
'int' => OtherFormat::class,
'string' => OtherFormat::class,
'bool' => OtherFormat::class,
'void' => VoidFormat::class,
];
/**
* @var IFormat
*/
protected IFormat $format;
protected mixed $format;
/**