diff --git a/src/Handler.php b/src/Handler.php index 07c5138..d98c332 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -47,7 +47,7 @@ class Handler implements RequestHandlerInterface */ public function __construct(public array|Closure $handler, public array $parameter, public ReflectionNamedType $reflectionType) { - $this->format = di($this->reflectionType->getName()); + $this->format = di($this->types[$this->reflectionType->getName()]); }