Skip to content

Commit

Permalink
chore: fix generics
Browse files Browse the repository at this point in the history
  • Loading branch information
jenky committed Jul 11, 2024
1 parent 5d76043 commit 17a2695
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/ConnectorConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,18 @@
use Psr\Http\Message\RequestInterface;
use Psr\Http\Message\ResponseInterface;

/**
* @template T of ConnectorInterface
*/
class ConnectorConfigurator
{
/**
* @var array<\Closure(T): void>
* @var array<\Closure(ConnectorInterface): void>
*/
private $handlers = [];

/**
* Configure the given connector with options for current request.
*
* @template T of ConnectorInterface
*
* @param T $connector
* @return T
*/
Expand Down Expand Up @@ -58,7 +57,7 @@ final public function middleware(callable $middleware, string $name = '')
/**
* Register a configuration handler.
*
* @param \Closure(T): void $handler
* @param \Closure(ConnectorInterface): void $handler
* @return static
*/
protected function register(\Closure $handler)
Expand Down

0 comments on commit 17a2695

Please sign in to comment.