Skip to content

Commit

Permalink
Add array
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostzero committed Jul 25, 2023
1 parent ef3d4c8 commit 53cafaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/Own3d/Socket/Support/SocketToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 53cafaa

Please sign in to comment.