This commit is contained in:
2023-10-17 15:52:14 +08:00
parent 32598d8575
commit 6a624939c2
+8 -7
View File
@@ -23,13 +23,14 @@ class Handler implements RequestHandlerInterface
* @var array|string[] * @var array|string[]
*/ */
protected array $types = [ protected array $types = [
'array' => ArrayFormat::class, 'Psr\Http\Message\ResponseInterface' => ResponseInterface::class,
'mixed' => MixedFormat::class, 'array' => ArrayFormat::class,
'object' => MixedFormat::class, 'mixed' => MixedFormat::class,
'int' => OtherFormat::class, 'object' => MixedFormat::class,
'string' => OtherFormat::class, 'int' => OtherFormat::class,
'bool' => OtherFormat::class, 'string' => OtherFormat::class,
'void' => VoidFormat::class, 'bool' => OtherFormat::class,
'void' => VoidFormat::class,
]; ];