Skip to content

Commit bc98b63

Browse files
authored
[5.x] Specify WorkloadRepository@get() return type (#1542)
* Update WorkloadRepository.php * Update WorkloadRepository.php * Update RedisWorkloadRepository.php
1 parent 478c042 commit bc98b63

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Contracts/WorkloadRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ interface WorkloadRepository
77
/**
88
* Get the current workload of each queue.
99
*
10-
* @return array
10+
* @return array<int, array{"name": string, "length": int, "wait": int, "processes": int, "split_queues": null|array<int, array{"name": string, "wait": int, "length": int}>}>
1111
*/
1212
public function get();
1313
}

src/Repositories/RedisWorkloadRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(QueueFactory $queue, WaitTimeCalculator $waitTime,
6060
/**
6161
* Get the current workload of each queue.
6262
*
63-
* @return array
63+
* @return array<int, array{"name": string, "length": int, "wait": int, "processes": int, "split_queues": null|array<int, array{"name": string, "wait": int, "length": int}>}>
6464
*/
6565
public function get()
6666
{

0 commit comments

Comments
 (0)