Skip to content

Commit f62596a

Browse files
Clarified plugin client factory type information
1 parent aa79242 commit f62596a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/PluginClientFactory.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
final class PluginClientFactory
1717
{
1818
/**
19-
* @var callable|null
19+
* @var (callable(ClientInterface|HttpAsyncClient, Plugin[], array): PluginClient)|null
2020
*/
2121
private static $factory;
2222

@@ -28,8 +28,10 @@ final class PluginClientFactory
2828
* application execution.
2929
*
3030
* @internal
31+
*
32+
* @param callable(ClientInterface|HttpAsyncClient, Plugin[], array): PluginClient $factory
3133
*/
32-
public static function setFactory(callable $factory)
34+
public static function setFactory(callable $factory): void
3335
{
3436
static::$factory = $factory;
3537
}

0 commit comments

Comments
 (0)