Skip to content

Commit

Permalink
chore(channel): use phpstorm compatible tuple type annotation
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Jan 12, 2022
1 parent 7e438a3 commit bbbd319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Psl/Channel/bounded.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
*
* @param positive-int $capacity
*
* @return array{0: ReceiverInterface<T>, 1: SenderInterface<T>}
* @return array{ReceiverInterface<T>, SenderInterface<T>}
*/
function bounded(int $capacity): array
{
Expand Down
2 changes: 1 addition & 1 deletion src/Psl/Channel/unbounded.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @template T
*
* @return array{0: ReceiverInterface<T>, 1: SenderInterface<T>}
* @return array{ReceiverInterface<T>, SenderInterface<T>}
*/
function unbounded(): array
{
Expand Down

0 comments on commit bbbd319

Please sign in to comment.