This commit is contained in:
2023-09-13 16:02:07 +08:00
parent f1d1ff1f4f
commit 82ccab7bd6
+3 -2
View File
@@ -9,6 +9,7 @@ use Psr\Http\Message\ResponseInterface;
use Psr\Http\Message\ServerRequestInterface;
use Psr\Http\Server\RequestHandlerInterface;
use ReflectionException;
use ReflectionIntersectionType;
use ReflectionNamedType;
use ReflectionUnionType;
@@ -18,9 +19,9 @@ class Handler implements RequestHandlerInterface
/**
* @param array|Closure $handler
* @param array $parameter
* @param ReflectionNamedType|ReflectionUnionType|null $responseType
* @param ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null $responseType
*/
public function __construct(public array|Closure $handler, public array $parameter, public ReflectionNamedType|ReflectionUnionType|null $responseType)
public function __construct(public array|Closure $handler, public array $parameter, public ReflectionNamedType|ReflectionUnionType|ReflectionIntersectionType|null $responseType)
{
}