Fix docblocks in App
Frankly, I don't understand why the typing was removed from these methods in https://github.com/beyondcode/laravel-websockets/pull/471, seems like a strange decision.
This commit is contained in:
parent
e9b85bbfc7
commit
25ff1d668c
|
|
@ -39,7 +39,7 @@ class App
|
||||||
/**
|
/**
|
||||||
* Find the app by id.
|
* Find the app by id.
|
||||||
*
|
*
|
||||||
* @param mixed $appId
|
* @param int $appId
|
||||||
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
||||||
*/
|
*/
|
||||||
public static function findById($appId)
|
public static function findById($appId)
|
||||||
|
|
@ -50,7 +50,7 @@ class App
|
||||||
/**
|
/**
|
||||||
* Find the app by app key.
|
* Find the app by app key.
|
||||||
*
|
*
|
||||||
* @param mixed $appId
|
* @param string $appKey
|
||||||
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
||||||
*/
|
*/
|
||||||
public static function findByKey($appKey): ?self
|
public static function findByKey($appKey): ?self
|
||||||
|
|
@ -61,7 +61,7 @@ class App
|
||||||
/**
|
/**
|
||||||
* Find the app by app secret.
|
* Find the app by app secret.
|
||||||
*
|
*
|
||||||
* @param mixed $appId
|
* @param string $appSecret
|
||||||
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
|
||||||
*/
|
*/
|
||||||
public static function findBySecret($appSecret): ?self
|
public static function findBySecret($appSecret): ?self
|
||||||
|
|
@ -72,9 +72,9 @@ class App
|
||||||
/**
|
/**
|
||||||
* Initialize the Web Socket app instance.
|
* Initialize the Web Socket app instance.
|
||||||
*
|
*
|
||||||
* @param mixed $appId
|
* @param int $appId
|
||||||
* @param mixed $key
|
* @param string $key
|
||||||
* @param mixed $secret
|
* @param string $secret
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \BeyondCode\LaravelWebSockets\Exceptions\InvalidApp
|
* @throws \BeyondCode\LaravelWebSockets\Exceptions\InvalidApp
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue