diff --git a/composer.json b/composer.json index 2221afe..cf35639 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^7.4|^8.0", + "php": "^8.0", "illuminate/support": "~5.4|~5.7.0|~5.8.0|^6.0|^7.0|^8.0|^9.0|^10.0", "guzzlehttp/guzzle": "^6.3|^7.0", "own3d/id": "^1.7|^2.0" diff --git a/src/Own3d/Socket/Support/SocketToken.php b/src/Own3d/Socket/Support/SocketToken.php index fa0e1a9..e824c1a 100644 --- a/src/Own3d/Socket/Support/SocketToken.php +++ b/src/Own3d/Socket/Support/SocketToken.php @@ -27,7 +27,7 @@ public static function auth(string $room): string /** * Generate a pre-signed token for the socket server to emit a message. */ - public static function emit(string $room, string $event, array $data): string + public static function emit(string|array $room, string $event, array $data): string { return self::encode(self::payload('emit', [ 'room' => $room,