From 6eef27161d44c7c2ac353591b7428a100aa87797 Mon Sep 17 00:00:00 2001 From: Copilot <198982749+Copilot@users.noreply.github.com> Date: Thu, 30 Oct 2025 09:44:44 +0800 Subject: [PATCH 1/3] Add `/types export-ignore` to all `.gitattributes` in `src/*` (#7581) --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index 27b765f..f11271b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ /tests export-ignore /.github export-ignore +/types export-ignore From 20c343c1641f19f0c59fde0eeb3c782b7d380ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=93=AD=E6=98=95?= <715557344@qq.com> Date: Mon, 1 Dec 2025 18:06:18 +0800 Subject: [PATCH 2/3] Optimized phpdoc for `Closure():TReturn`. (#7650) --- src/Functions.php | 2 +- src/Waiter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index 35ded47..fe9424d 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -33,7 +33,7 @@ function parallel(array $callables, int $concurrent = 0): array /** * @template TReturn * - * @param Closure():TReturn $closure + * @param (Closure():TReturn) $closure * @return TReturn */ function wait(Closure $closure, ?float $timeout = null) diff --git a/src/Waiter.php b/src/Waiter.php index c0231d5..b760710 100644 --- a/src/Waiter.php +++ b/src/Waiter.php @@ -32,7 +32,7 @@ public function __construct(float $timeout = 10.0) /** * @template TReturn * - * @param Closure():TReturn $closure + * @param (Closure():TReturn) $closure * @param null|float $timeout seconds * @return TReturn */ From 060c276febdb9a079b54f5ca737b972ee6013d09 Mon Sep 17 00:00:00 2001 From: "Mr.tang" Date: Tue, 2 Dec 2025 22:30:56 +0800 Subject: [PATCH 3/3] phpstrom Code prompt optimization (#7579) --- src/Functions.php | 2 +- src/Waiter.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Functions.php b/src/Functions.php index fe9424d..35ded47 100644 --- a/src/Functions.php +++ b/src/Functions.php @@ -33,7 +33,7 @@ function parallel(array $callables, int $concurrent = 0): array /** * @template TReturn * - * @param (Closure():TReturn) $closure + * @param Closure():TReturn $closure * @return TReturn */ function wait(Closure $closure, ?float $timeout = null) diff --git a/src/Waiter.php b/src/Waiter.php index b760710..c0231d5 100644 --- a/src/Waiter.php +++ b/src/Waiter.php @@ -32,7 +32,7 @@ public function __construct(float $timeout = 10.0) /** * @template TReturn * - * @param (Closure():TReturn) $closure + * @param Closure():TReturn $closure * @param null|float $timeout seconds * @return TReturn */