diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-10 18:20:31 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-01-10 18:20:31 +0100 |
commit | 679682c186ee99c98fe795721b5e620e03d96d6b (patch) | |
tree | 18d34b213b8bb2aa28d40d01e41474c717844822 /lib/public/BackgroundJob | |
parent | 4ecf4b46422b9245599651ccd9c4de7f943aa359 (diff) | |
download | nextcloud-server-679682c186ee99c98fe795721b5e620e03d96d6b.tar.gz nextcloud-server-679682c186ee99c98fe795721b5e620e03d96d6b.zip |
Use a Generator for job list to fix background-job:list command
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/public/BackgroundJob')
-rw-r--r-- | lib/public/BackgroundJob/IJobList.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/public/BackgroundJob/IJobList.php b/lib/public/BackgroundJob/IJobList.php index 8f6449b070b..bd43f0771f6 100644 --- a/lib/public/BackgroundJob/IJobList.php +++ b/lib/public/BackgroundJob/IJobList.php @@ -78,21 +78,21 @@ interface IJobList { /** * get all jobs in the list * - * @return IJob[] + * @return iterable<IJob> * @since 7.0.0 * @deprecated 9.0.0 - This method is dangerous since it can cause load and * memory problems when creating too many instances. Use getJobs instead. */ - public function getAll(): array; + public function getAll(): iterable; /** * Get jobs matching the search * * @param IJob|class-string<IJob>|null $job - * @return IJob[] + * @return iterable<IJob> * @since 25.0.0 */ - public function getJobs($job, ?int $limit, int $offset): array; + public function getJobs($job, ?int $limit, int $offset): iterable; /** * get the next job in the list |