diff --git a/src/Protocols/Pusher/Http/Controllers/PusherController.php b/src/Protocols/Pusher/Http/Controllers/PusherController.php index c2adbf6f..1819cec9 100644 --- a/src/Protocols/Pusher/Http/Controllers/PusherController.php +++ b/src/Protocols/Pusher/Http/Controllers/PusherController.php @@ -31,7 +31,7 @@ public function __invoke(RequestInterface $request, Connection $connection, stri $connection->withMaxMessageSize($reverbConnection->app()->maxMessageSize()); $connection->onMessage( - fn (string $message) => $this->server->message($reverbConnection, $message) + fn ($message) => $this->server->message($reverbConnection, (string) $message) ); $connection->onClose(