@@ -227,7 +227,7 @@ |
||
227 | 227 | * Ensure signature integrity coming from an |
228 | 228 | * authorized application. |
229 | 229 | * |
230 | - * @param \GuzzleHttp\Psr7\ServerRequest $request |
|
230 | + * @param Request $request |
|
231 | 231 | * @return $this |
232 | 232 | * @throws \Symfony\Component\HttpKernel\Exception\HttpException |
233 | 233 | */ |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * Handle the incoming request. |
39 | 39 | * |
40 | 40 | * @param \Illuminate\Http\Request $request |
41 | - * @return \Illuminate\Http\Response |
|
41 | + * @return \React\Promise\PromiseInterface |
|
42 | 42 | */ |
43 | 43 | public function __invoke(Request $request) |
44 | 44 | { |
@@ -73,8 +73,6 @@ |
||
73 | 73 | * Initialize the Web Socket app instance. |
74 | 74 | * |
75 | 75 | * @param string|int $appId |
76 | - * @param string $key |
|
77 | - * @param string $secret |
|
78 | 76 | * @return void |
79 | 77 | */ |
80 | 78 | public function __construct($appId, $appKey, $appSecret) |
@@ -79,7 +79,6 @@ |
||
79 | 79 | /** |
80 | 80 | * Map the app into an App instance. |
81 | 81 | * |
82 | - * @param array|null $app |
|
83 | 82 | * @return \BeyondCode\LaravelWebSockets\Apps\App|null |
84 | 83 | */ |
85 | 84 | protected function convertIntoApp(?array $appAttributes): ?App |
@@ -16,8 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * Create a new instance and add a connection to watch. |
18 | 18 | * |
19 | - * @param \Ratchet\ConnectionInterface $connection |
|
20 | - * @return self |
|
19 | + * @return ConnectionInterface |
|
21 | 20 | */ |
22 | 21 | public static function decorate(ConnectionInterface $app): self |
23 | 22 | { |
@@ -20,8 +20,8 @@ discard block |
||
20 | 20 | /** |
21 | 21 | * Create a new instance and add the app to watch. |
22 | 22 | * |
23 | - * @param \Ratchet\MessageComponentInterface $app |
|
24 | - * @return self |
|
23 | + * @param MessageComponentInterface $app |
|
24 | + * @return \Ratchet\ComponentInterface |
|
25 | 25 | */ |
26 | 26 | public static function decorate(MessageComponentInterface $app): self |
27 | 27 | { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | /** |
34 | 34 | * Set a new app to watch. |
35 | 35 | * |
36 | - * @param \Ratchet\MessageComponentInterface $app |
|
36 | + * @param MessageComponentInterface $app |
|
37 | 37 | * @return $this |
38 | 38 | */ |
39 | 39 | public function setApp(MessageComponentInterface $app) |
@@ -101,7 +101,7 @@ |
||
101 | 101 | * Handle the websocket errors. |
102 | 102 | * |
103 | 103 | * @param \Ratchet\ConnectionInterface $connection |
104 | - * @param WebSocketException $exception |
|
104 | + * @param Exception $exception |
|
105 | 105 | * @return void |
106 | 106 | */ |
107 | 107 | public function onError(ConnectionInterface $connection, Exception $exception) |
@@ -197,7 +197,7 @@ |
||
197 | 197 | /** |
198 | 198 | * Get a new RedisLock instance to avoid race conditions. |
199 | 199 | * |
200 | - * @return \Illuminate\Cache\CacheLock |
|
200 | + * @return RedisLock |
|
201 | 201 | */ |
202 | 202 | protected function lock() |
203 | 203 | { |
@@ -319,7 +319,6 @@ discard block |
||
319 | 319 | * @param \Ratchet\ConnectionInterface $connection |
320 | 320 | * @param stdClass $user |
321 | 321 | * @param string $channel |
322 | - * @param stdClass $payload |
|
323 | 322 | * @return PromiseInterface[bool] |
324 | 323 | */ |
325 | 324 | public function userLeftPresenceChannel(ConnectionInterface $connection, stdClass $user, string $channel): PromiseInterface |
@@ -549,7 +548,7 @@ discard block |
||
549 | 548 | * |
550 | 549 | * @param string|int $appId |
551 | 550 | * @param string|null $channel |
552 | - * @param int $decrement |
|
551 | + * @param int $increment |
|
553 | 552 | * @return PromiseInterface[int] |
554 | 553 | */ |
555 | 554 | public function decrementSubscriptionsCount($appId, string $channel = null, int $increment = 1): PromiseInterface |
@@ -561,7 +560,7 @@ discard block |
||
561 | 560 | * Add the connection to the sorted list. |
562 | 561 | * |
563 | 562 | * @param \Ratchet\ConnectionInterface $connection |
564 | - * @param \DateTime|string|null $moment |
|
563 | + * @param Carbon $moment |
|
565 | 564 | * @return PromiseInterface |
566 | 565 | */ |
567 | 566 | public function addConnectionToSet(ConnectionInterface $connection, $moment = null): PromiseInterface |
@@ -764,7 +763,7 @@ discard block |
||
764 | 763 | /** |
765 | 764 | * Get a new RedisLock instance to avoid race conditions. |
766 | 765 | * |
767 | - * @return \Illuminate\Cache\CacheLock |
|
766 | + * @return RedisLock |
|
768 | 767 | */ |
769 | 768 | protected function lock() |
770 | 769 | { |