From 6a624939c2a65b0d3bbc25cfe163e712f90805e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 17 Oct 2023 15:52:14 +0800 Subject: [PATCH] eee --- src/Handler.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index d98c332..1350ed6 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -23,13 +23,14 @@ class Handler implements RequestHandlerInterface * @var array|string[] */ protected array $types = [ - 'array' => ArrayFormat::class, - 'mixed' => MixedFormat::class, - 'object' => MixedFormat::class, - 'int' => OtherFormat::class, - 'string' => OtherFormat::class, - 'bool' => OtherFormat::class, - 'void' => VoidFormat::class, + 'Psr\Http\Message\ResponseInterface' => ResponseInterface::class, + 'array' => ArrayFormat::class, + 'mixed' => MixedFormat::class, + 'object' => MixedFormat::class, + 'int' => OtherFormat::class, + 'string' => OtherFormat::class, + 'bool' => OtherFormat::class, + 'void' => VoidFormat::class, ];