Skip to content

Commit

Permalink
Fixed type error in connection message handler (#144)
Browse files Browse the repository at this point in the history
* Fixed type error in connection message handler

* formatting

---------

Co-authored-by: Joe Dixon <[email protected]>
  • Loading branch information
boris-glumpler and joedixon authored Apr 12, 2024
1 parent 47e6a7d commit 0b337be
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 0b337be

Please sign in to comment.