From bbbd3193edcb68fd754032442495b8684d91a4d6 Mon Sep 17 00:00:00 2001 From: azjezz Date: Wed, 12 Jan 2022 02:10:50 +0100 Subject: [PATCH] chore(channel): use phpstorm compatible tuple type annotation Signed-off-by: azjezz --- src/Psl/Channel/bounded.php | 2 +- src/Psl/Channel/unbounded.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psl/Channel/bounded.php b/src/Psl/Channel/bounded.php index 379ea293..e909bdd6 100644 --- a/src/Psl/Channel/bounded.php +++ b/src/Psl/Channel/bounded.php @@ -13,7 +13,7 @@ * * @param positive-int $capacity * - * @return array{0: ReceiverInterface, 1: SenderInterface} + * @return array{ReceiverInterface, SenderInterface} */ function bounded(int $capacity): array { diff --git a/src/Psl/Channel/unbounded.php b/src/Psl/Channel/unbounded.php index dd1f2c55..002905b9 100644 --- a/src/Psl/Channel/unbounded.php +++ b/src/Psl/Channel/unbounded.php @@ -11,7 +11,7 @@ * * @template T * - * @return array{0: ReceiverInterface, 1: SenderInterface} + * @return array{ReceiverInterface, SenderInterface} */ function unbounded(): array {