This repository was archived by the owner on Feb 7, 2024. It is now read-only.
File tree 3 files changed +13
-13
lines changed
3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 6
6
7
7
class App
8
8
{
9
- /** @var int */
9
+ /** @var string| int */
10
10
public $ id ;
11
11
12
12
/** @var string */
@@ -39,7 +39,7 @@ class App
39
39
/**
40
40
* Find the app by id.
41
41
*
42
- * @param mixed $appId
42
+ * @param string|int $appId
43
43
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
44
44
*/
45
45
public static function findById ($ appId )
@@ -50,7 +50,7 @@ public static function findById($appId)
50
50
/**
51
51
* Find the app by app key.
52
52
*
53
- * @param mixed $appId
53
+ * @param string $appKey
54
54
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
55
55
*/
56
56
public static function findByKey ($ appKey ): ?self
@@ -61,7 +61,7 @@ public static function findByKey($appKey): ?self
61
61
/**
62
62
* Find the app by app secret.
63
63
*
64
- * @param mixed $appId
64
+ * @param string $appSecret
65
65
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
66
66
*/
67
67
public static function findBySecret ($ appSecret ): ?self
@@ -72,9 +72,9 @@ public static function findBySecret($appSecret): ?self
72
72
/**
73
73
* Initialize the Web Socket app instance.
74
74
*
75
- * @param mixed $appId
76
- * @param mixed $key
77
- * @param mixed $secret
75
+ * @param string|int $appId
76
+ * @param string $key
77
+ * @param string $secret
78
78
* @return void
79
79
* @throws \BeyondCode\LaravelWebSockets\Exceptions\InvalidApp
80
80
*/
Original file line number Diff line number Diff line change @@ -14,23 +14,23 @@ public function all(): array;
14
14
/**
15
15
* Get app by id.
16
16
*
17
- * @param mixed $appId
17
+ * @param string|int $appId
18
18
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
19
19
*/
20
20
public function findById ($ appId ): ?App ;
21
21
22
22
/**
23
23
* Get app by app key.
24
24
*
25
- * @param mixed $appKey
25
+ * @param string $appKey
26
26
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
27
27
*/
28
28
public function findByKey ($ appKey ): ?App ;
29
29
30
30
/**
31
31
* Get app by secret.
32
32
*
33
- * @param mixed $appSecret
33
+ * @param string $appSecret
34
34
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
35
35
*/
36
36
public function findBySecret ($ appSecret ): ?App ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public function all(): array
38
38
/**
39
39
* Get app by id.
40
40
*
41
- * @param mixed $appId
41
+ * @param string|int $appId
42
42
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
43
43
*/
44
44
public function findById ($ appId ): ?App
@@ -53,7 +53,7 @@ public function findById($appId): ?App
53
53
/**
54
54
* Get app by app key.
55
55
*
56
- * @param mixed $appKey
56
+ * @param string $appKey
57
57
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
58
58
*/
59
59
public function findByKey ($ appKey ): ?App
@@ -68,7 +68,7 @@ public function findByKey($appKey): ?App
68
68
/**
69
69
* Get app by secret.
70
70
*
71
- * @param mixed $appSecret
71
+ * @param string $appSecret
72
72
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
73
73
*/
74
74
public function findBySecret ($ appSecret ): ?App
You can’t perform that action at this time.
0 commit comments