Skip to content

Commit 4c9bd0f

Browse files
committed
Upgrade hyperf/framework to ^2.2|^3.0
1 parent d817d6a commit 4c9bd0f

File tree

8 files changed

+16
-15
lines changed

8 files changed

+16
-15
lines changed

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@
1818
}
1919
},
2020
"require": {
21-
"php": ">=7.2",
21+
"php": ">=7.4",
2222
"ext-swoole": ">=4.4",
23-
"hyperf/pool": "^2.0.0",
24-
"hyperf/process": "^2.0.0",
23+
"hyperf/pool": "^2.2|^3.0",
24+
"hyperf/process": "^2.2|^3.0",
2525
"spiral/goridge": "^2.4.1",
2626
"symfony/event-dispatcher": "^5.1"
2727
},
2828
"require-dev": {
2929
"friendsofphp/php-cs-fixer": "^3.0",
30-
"hyperf/command": "^2.0.0",
31-
"hyperf/config": "^2.0.0",
32-
"hyperf/di": "^2.0.0",
33-
"hyperf/framework": "^2.0.0",
34-
"hyperf/testing": "^2.0.0",
30+
"hyperf/command": "^2.2|^3.0",
31+
"hyperf/config": "^2.2|^3.0",
32+
"hyperf/di": "^2.2|^3.0",
33+
"hyperf/framework": "^2.2|^3.0",
34+
"hyperf/testing": "^2.2|^3.0",
3535
"mockery/mockery": "^1.3",
36-
"phpstan/phpstan": "^0.12",
36+
"phpstan/phpstan": "^1.0",
3737
"swoole/ide-helper": "^4.5"
3838
},
3939
"config": {

src/IPC/PipeIPCSender.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class PipeIPCSender implements IPCSenderInterface, GoTask
2929
/**
3030
* PipeIPC constructor.
3131
* @mixin RPC
32+
* @param mixed $process
3233
*/
3334
public function __construct($process)
3435
{

src/Listener/CommandListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function listen(): array
4747
/**
4848
* {@inheritdoc}
4949
*/
50-
public function process(object $event)
50+
public function process(object $event): void
5151
{
5252
if (! $this->config->isEnabled()) {
5353
return;

src/Listener/Go2PhpListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function listen(): array
4848
/**
4949
* {@inheritdoc}
5050
*/
51-
public function process(object $event)
51+
public function process(object $event): void
5252
{
5353
if (! $this->config->shouldEnableGo2Php()) {
5454
return;

src/Listener/LogRedirectListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function listen(): array
5151
/**
5252
* {@inheritdoc}
5353
*/
54-
public function process(object $event)
54+
public function process(object $event): void
5555
{
5656
if (! $this->config->shouldLogRedirect()) {
5757
return;

src/Listener/PipeLockListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function listen(): array
4242
* Handle the Event when the event is triggered, all listeners will
4343
* complete before the event is returned to the EventDispatcher.
4444
*/
45-
public function process(object $event)
45+
public function process(object $event): void
4646
{
4747
$this->container->get(PipeGoTask::class);
4848
}

src/Process/GoTaskProcess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
class GoTaskProcess extends AbstractProcess
2020
{
21-
public $enableCoroutine = true;
21+
public bool $enableCoroutine = true;
2222

2323
/**
2424
* @var DomainConfig

src/SocketGoTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
*/
1212
namespace Hyperf\GoTask;
1313

14+
use Hyperf\Context\Context;
1415
use Hyperf\GoTask\Exception\InvalidGoTaskConnectionException;
15-
use Hyperf\Utils\Context;
1616

1717
/**
1818
* Class SocketGoTask uses sockets to communicate.

0 commit comments

Comments
 (0)