This commit is contained in:
2023-10-17 15:52:32 +08:00
parent 6a624939c2
commit a61e0a1ff5
+8 -8
View File
@@ -23,14 +23,14 @@ class Handler implements RequestHandlerInterface
* @var array|string[]
*/
protected array $types = [
'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,
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,
];