From a42c0168b2660b70e6597d0b23a8dca1f7dae510 Mon Sep 17 00:00:00 2001 From: Liam Hao Date: Fri, 19 Mar 2021 22:40:56 +0800 Subject: [PATCH 1/2] Update Pusher.php 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?](https://github.com/swooletw/laravel-swoole/issues/472)** --- src/Websocket/Pusher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Websocket/Pusher.php b/src/Websocket/Pusher.php index 32b8e91f..a5cdc875 100644 --- a/src/Websocket/Pusher.php +++ b/src/Websocket/Pusher.php @@ -68,7 +68,7 @@ protected function __construct( bool $broadcast, bool $assigned, string $event, - $message = null, + ?string $message, $server ) { From c17cb490125e459063854bb2d50245bd8a5482b1 Mon Sep 17 00:00:00 2001 From: Victor Gazotti Date: Wed, 24 Mar 2021 09:56:07 -0300 Subject: [PATCH 2/2] Update Pusher.php --- src/Websocket/Pusher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Websocket/Pusher.php b/src/Websocket/Pusher.php index a5cdc875..5d772788 100644 --- a/src/Websocket/Pusher.php +++ b/src/Websocket/Pusher.php @@ -45,7 +45,7 @@ class Pusher protected $event; /** - * @var mixed|null + * @var string|null */ protected $message;