Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Laravel-Swoole

![php-badge](https://img.shields.io/badge/php-%3E%3D%207.1-8892BF.svg)
![php-badge](https://img.shields.io/badge/php-%3E%3D%207.2-8892BF.svg)
[![packagist-badge](https://img.shields.io/packagist/v/swooletw/laravel-swoole.svg)](https://packagist.org/packages/swooletw/laravel-swoole)
[![Total Downloads](https://poser.pugx.org/swooletw/laravel-swoole/downloads)](https://packagist.org/packages/swooletw/laravel-swoole)
[![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)
Expand All @@ -12,7 +12,7 @@ This package provides a high performance HTTP server to speed up your Laravel/Lu

| PHP | Laravel | Lumen | Swoole |
|:-------:|:-------:|:-----:|:-------:|
| >=7.2 | ~5.4 | ~5.4 | >=4.0.0 |
| >=7.2 | ~5.8 | ~5.4 | >=4.0.0 |

## Features

Expand Down
2 changes: 1 addition & 1 deletion src/Server/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public function onTask($server, $taskId, $srcWorkerId, $data)
$this->pushMessage($server, $data['data']);
// push async task to queue
} elseif ($this->isAsyncTaskPayload($data)) {
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->dispatch();
(new SwooleTaskJob($this->container, $server, $data, $taskId, $srcWorkerId))->fire();
}
} catch (Throwable $e) {
$this->logServerError($e);
Expand Down
10 changes: 5 additions & 5 deletions src/Websocket/Pusher.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Pusher
protected $event;

/**
* @var string|null
* @var mixed|null
*/
protected $message;

Expand All @@ -58,7 +58,7 @@ class Pusher
* @param bool $broadcast
* @param bool $assigned
* @param string $event
* @param string|null $message
* @param mixed|null $message
* @param \Swoole\Websocket\Server
*/
protected function __construct(
Expand All @@ -68,7 +68,7 @@ protected function __construct(
bool $broadcast,
bool $assigned,
string $event,
string $message = null,
$message = null,
$server
)
{
Expand Down Expand Up @@ -189,9 +189,9 @@ public function getEvent(): string
}

/**
* @return string|null
* @return mixed|null
*/
public function getMessage(): ?string
public function getMessage()
{
return $this->message;
}
Expand Down