Skip to content

Commit

Permalink
Update Pusher.php
Browse files Browse the repository at this point in the history
add `?string` type to `$message`. This style of function declaration [has been deprecated in PHP 8.0](https://www.php.net/manual/en/migration80.deprecated.php).

solve issue: **[Is this a BUG?](swooletw/laravel-swoole#472
  • Loading branch information
KalebNiven committed Mar 19, 2021
1 parent 5eaa19d commit 1eae825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Websocket/Pusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ protected function __construct(
bool $broadcast,
bool $assigned,
string $event,
$message = null,
?string $message,
$server
)
{
Expand Down

0 comments on commit 1eae825

Please sign in to comment.