Skip to content

Commit 6beda2d

Browse files
committed
Fix return type
1 parent fde283c commit 6beda2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JsonRpc/MessageFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ public function create(string $input): iterable
112112
/**
113113
* Creates a message by its type and parameters.
114114
*
115-
* @template T of value-of<self::REGISTERED_MESSAGES>
115+
* @template T of HasMethodInterface
116116
*
117117
* @param class-string<T> $messageType
118118
* @param RequestData $data
119119
*
120-
* @phpstan-return T
120+
* @return T
121121
*/
122122
public function createByType(string $messageType, array $data): HasMethodInterface
123123
{

0 commit comments

Comments
 (0)