Skip to content

Commit a97a5dc

Browse files
Fix phpDocumentor errors in type annotations
Change class-string union types to use phpDocumentor-compatible syntax and reorder docblock tags so class descriptions precede `@author` tags. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7fb85a7 commit a97a5dc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/JsonRpc/MessageFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class MessageFactory
3737
/**
3838
* Registry of all known message classes that have methods.
3939
*
40-
* @var array<int, class-string<Request|Notification>>
40+
* @var list<class-string<Request>|class-string<Notification>>
4141
*/
4242
private const REGISTERED_MESSAGES = [
4343
Schema\Notification\CancelledNotification::class,
@@ -68,7 +68,7 @@ final class MessageFactory
6868
];
6969

7070
/**
71-
* @param array<int, class-string<Request|Notification>> $registeredMessages
71+
* @param list<class-string<Request>|class-string<Notification>> $registeredMessages
7272
*/
7373
public function __construct(
7474
private readonly array $registeredMessages,
@@ -151,7 +151,7 @@ private function createMessage(array $data): MessageInterface
151151
/**
152152
* Finds the registered message class for a given method name.
153153
*
154-
* @return class-string<Request|Notification>
154+
* @return class-string<Request>|class-string<Notification>
155155
*
156156
* @throws InvalidInputMessageException
157157
*/

src/Server/Session/Psr16StoreSession.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
use Symfony\Component\Uid\Uuid;
1818

1919
/**
20-
* @author luoyue <1569097443@qq.com>
21-
*
2220
* PSR-16 compliant cache-based session store.
2321
*
2422
* This implementation uses any PSR-16 compliant cache as the storage backend
2523
* for session data. Each session is stored with a prefixed key using the session ID.
24+
*
25+
* @author luoyue <1569097443@qq.com>
2626
*/
2727
class Psr16StoreSession implements SessionStoreInterface
2828
{

0 commit comments

Comments
 (0)