From 53cafaa5b76c2eb8fc674dd908fca90993338d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Preu=C3=9F?= Date: Tue, 25 Jul 2023 11:40:06 +0200 Subject: [PATCH] Add array --- composer.json | 2 +- src/Own3d/Socket/Support/SocketToken.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,