Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/Apps/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class App
{
/** @var int */
/** @var string|int */
public $id;

/** @var string */
Expand Down Expand Up @@ -39,7 +39,7 @@ class App
/**
* Find the app by id.
*
* @param mixed $appId
* @param string|int $appId
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public static function findById($appId)
Expand All @@ -50,7 +50,7 @@ public static function findById($appId)
/**
* Find the app by app key.
*
* @param mixed $appId
* @param string $appKey
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public static function findByKey($appKey): ?self
Expand All @@ -61,7 +61,7 @@ public static function findByKey($appKey): ?self
/**
* Find the app by app secret.
*
* @param mixed $appId
* @param string $appSecret
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public static function findBySecret($appSecret): ?self
Expand All @@ -72,9 +72,9 @@ public static function findBySecret($appSecret): ?self
/**
* Initialize the Web Socket app instance.
*
* @param mixed $appId
* @param mixed $key
* @param mixed $secret
* @param string|int $appId
* @param string $key
* @param string $secret
* @return void
* @throws \BeyondCode\LaravelWebSockets\Exceptions\InvalidApp
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Apps/AppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ public function all(): array;
/**
* Get app by id.
*
* @param mixed $appId
* @param string|int $appId
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findById($appId): ?App;

/**
* Get app by app key.
*
* @param mixed $appKey
* @param string $appKey
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findByKey($appKey): ?App;

/**
* Get app by secret.
*
* @param mixed $appSecret
* @param string $appSecret
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findBySecret($appSecret): ?App;
Expand Down
6 changes: 3 additions & 3 deletions src/Apps/ConfigAppManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function all(): array
/**
* Get app by id.
*
* @param mixed $appId
* @param string|int $appId
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findById($appId): ?App
Expand All @@ -53,7 +53,7 @@ public function findById($appId): ?App
/**
* Get app by app key.
*
* @param mixed $appKey
* @param string $appKey
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findByKey($appKey): ?App
Expand All @@ -68,7 +68,7 @@ public function findByKey($appKey): ?App
/**
* Get app by secret.
*
* @param mixed $appSecret
* @param string $appSecret
* @return \BeyondCode\LaravelWebSockets\Apps\App|null
*/
public function findBySecret($appSecret): ?App
Expand Down