From 702de15f6d1b28d0dc63e3f5351656cba8269269 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 5 Feb 2025 20:18:54 +0800 Subject: [PATCH 1/3] Init v3.2 (#7278) --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index 1fb83bf..abf7b6c 100644 --- a/composer.json +++ b/composer.json @@ -16,9 +16,9 @@ "pull-request": "https://github.com/hyperf/hyperf/pulls" }, "require": { - "php": ">=8.1", - "hyperf/context": "~3.1.0", - "hyperf/contract": "~3.1.0", + "php": ">=8.2", + "hyperf/context": "~3.2.0", + "hyperf/contract": "~3.2.0", "hyperf/engine": "^2.0" }, "autoload": { From 824745c29805201554d107efeaeae8a09a659138 Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Tue, 22 Jul 2025 19:57:18 +0800 Subject: [PATCH 2/3] Upgrade the versions of phpstan and rector. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- src/Parallel.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Parallel.php b/src/Parallel.php index 14f464a..aeb4add 100644 --- a/src/Parallel.php +++ b/src/Parallel.php @@ -78,7 +78,8 @@ public function wait(bool $throw = true): array $executionException = new ParallelExecutionException($message); $executionException->setResults($this->results); $executionException->setThrowables($this->throwables); - unset($this->results, $this->throwables); + $this->results = []; + $this->throwables = []; throw $executionException; } return $this->results; From a46668050e7f50ffd433580745f8769145168e7f Mon Sep 17 00:00:00 2001 From: kingIZZZY <1576535+kingIZZZY@users.noreply.github.com> Date: Tue, 25 Nov 2025 21:59:29 -0500 Subject: [PATCH 3/3] Optimized the parameters of method `__call()` to make them more standardized. (#7637) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- src/Concurrent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Concurrent.php b/src/Concurrent.php index 968a43b..371ba15 100644 --- a/src/Concurrent.php +++ b/src/Concurrent.php @@ -32,7 +32,7 @@ public function __construct(protected int $limit) $this->channel = new Channel($limit); } - public function __call($name, $arguments) + public function __call(string $name, array $arguments): mixed { if (in_array($name, ['isFull', 'isEmpty'])) { return $this->channel->{$name}(...$arguments);