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 {