From 521377bf8d0704bbe5b8d24660f2eef6e276f284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 17 Oct 2023 15:55:36 +0800 Subject: [PATCH] eee --- src/Handler.php | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index 1630dac..9135d7b 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -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; /**