Skip to content

Commit d62f4db

Browse files
authored
fix: better generics support for State\ProcessorInterface (#6103)
* fix: better generics support for State\ProcessorInterface
1 parent 56f0cc9 commit d62f4db

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

State/MercureLinkProcessor.php

+7-1
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@
1717
use ApiPlatform\State\ProcessorInterface;
1818
use Symfony\Component\Mercure\Discovery;
1919

20+
/**
21+
* @template T1
22+
* @template T2
23+
*
24+
* @implements ProcessorInterface<T1, T2>
25+
*/
2026
final class MercureLinkProcessor implements ProcessorInterface
2127
{
2228
/**
23-
* @param ProcessorInterface<mixed> $decorated
29+
* @param ProcessorInterface<T1, T2> $decorated
2430
*/
2531
public function __construct(private readonly ProcessorInterface $decorated, private readonly Discovery $discovery)
2632
{

0 commit comments

Comments
 (0)