Skip to content

Commit

Permalink
Refactor ConnectorConfigurator
Browse files Browse the repository at this point in the history
Change Closure to callable and make register method public
  • Loading branch information
jenky committed Feb 13, 2024
1 parent 371d6e5 commit 8dc3a17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ConnectorConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
class ConnectorConfigurator
{
/**
* @var \Closure[]
* @var array<int, callable(T): void>
*/
private $handlers = [];

Expand All @@ -41,10 +41,10 @@ final public function configure(ConnectorInterface $connector): ConnectorInterfa
/**
* Register a configuration handler.
*
* @param \Closure(T): void $handler
* @param callable(T): void $handler
* @return static
*/
protected function register(\Closure $handler)
final public function register(callable $handler)
{
$clone = clone $this;

Expand Down

0 comments on commit 8dc3a17

Please sign in to comment.