Skip to content

Commit 01a5295

Browse files
committed
docs: docblock update
1 parent 25ce009 commit 01a5295

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

traits/WebsocketEventTrait.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,32 @@ trait WebsocketEventTrait
2121
{
2222
/**
2323
* @param ConnectionInterface $client
24-
* @return ClientEvent
24+
* @return ClientEvent|object
2525
* @throws InvalidConfigException
2626
*/
27-
public function getClientEvent(ConnectionInterface $client): ClientEvent
27+
public function getClientEvent(ConnectionInterface $client)
2828
{
2929
return Yii::createObject(['class' => ClientEvent::class, 'client' => $client]);
3030
}
3131

3232
/**
3333
* @param ConnectionInterface $client
3434
* @param string $message
35-
* @return ClientMessageEvent
35+
* @return ClientMessageEvent|object
3636
* @throws InvalidConfigException
3737
*/
38-
public function getClientMessageEvent(ConnectionInterface $client, string $message): ClientMessageEvent
38+
public function getClientMessageEvent(ConnectionInterface $client, string $message)
3939
{
4040
return Yii::createObject(['class' => ClientMessageEvent::class, 'client' => $client, 'message' => $message]);
4141
}
4242

4343
/**
4444
* @param ConnectionInterface $client
4545
* @param Exception $exception
46-
* @return ClientErrorEvent
46+
* @return ClientErrorEvent|object
4747
* @throws InvalidConfigException
4848
*/
49-
public function getClientErrorEvent(ConnectionInterface $client, Exception $exception): ClientErrorEvent
49+
public function getClientErrorEvent(ConnectionInterface $client, Exception $exception)
5050
{
5151
return Yii::createObject(['class' => ClientErrorEvent::class, 'client' => $client, 'exception' => $exception]);
5252
}

0 commit comments

Comments
 (0)