Skip to content

Commit

Permalink
Fixed type error in connection message handler
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-glumpler committed Apr 12, 2024
1 parent 47e6a7d commit 4443daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Protocols/Pusher/Http/Controllers/PusherController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 4443daa

Please sign in to comment.