Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit 44cf3b7

Browse files
authored
Merge pull request #251 from mabdulazim/patch-1
Update message attribute datatype in Pusher.php
2 parents f3a50c7 + 04ffc05 commit 44cf3b7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Websocket/Pusher.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class Pusher
4545
protected $event;
4646

4747
/**
48-
* @var string|null
48+
* @var mixed|null
4949
*/
5050
protected $message;
5151

@@ -58,7 +58,7 @@ class Pusher
5858
* @param bool $broadcast
5959
* @param bool $assigned
6060
* @param string $event
61-
* @param string|null $message
61+
* @param mixed|null $message
6262
* @param \Swoole\Websocket\Server
6363
*/
6464
protected function __construct(
@@ -68,7 +68,7 @@ protected function __construct(
6868
bool $broadcast,
6969
bool $assigned,
7070
string $event,
71-
string $message = null,
71+
$message = null,
7272
$server
7373
)
7474
{
@@ -189,9 +189,9 @@ public function getEvent(): string
189189
}
190190

191191
/**
192-
* @return string|null
192+
* @return mixed|null
193193
*/
194-
public function getMessage(): ?string
194+
public function getMessage()
195195
{
196196
return $this->message;
197197
}
@@ -278,4 +278,4 @@ public function push($payload): void
278278
}
279279
}
280280
}
281-
}
281+
}

0 commit comments

Comments
 (0)