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

Commit acb7f6c

Browse files
authored
Merge pull request #262 from swooletw/master
Merge master back to develop
2 parents 8b74ab9 + 768465b commit acb7f6c

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Laravel-Swoole
22

3-
![php-badge](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)
3+
![php-badge](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)
44
[![packagist-badge](https://img.shields.io/packagist/v/swooletw/laravel-swoole.svg)](https://packagist.org/packages/swooletw/laravel-swoole)
55
[![Total Downloads](https://poser.pugx.org/swooletw/laravel-swoole/downloads)](https://packagist.org/packages/swooletw/laravel-swoole)
66
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/swooletw/laravel-swoole/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/swooletw/laravel-swoole/?branch=master)
@@ -12,7 +12,7 @@ This package provides a high performance HTTP server to speed up your Laravel/Lu
1212

1313
| PHP | Laravel | Lumen | Swoole |
1414
|:-------:|:-------:|:-----:|:-------:|
15-
| >=7.2 | ~5.4 | ~5.4 | >=4.0.0 |
15+
| >=7.2 | ~5.8 | ~5.4 | >=4.0.0 |
1616

1717
## Features
1818

src/Server/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public function onTask($server, $taskId, $srcWorkerId, $data)
271271
$this->pushMessage($server, $data['data']);
272272
// push async task to queue
273273
} elseif ($this->isAsyncTaskPayload($data)) {
274-
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->dispatch();
274+
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->fire();
275275
}
276276
} catch (Throwable $e) {
277277
$this->logServerError($e);

src/Websocket/Pusher.php

Lines changed: 5 additions & 5 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
}

0 commit comments

Comments
 (0)