diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-07-11 11:41:47 +0200 |
---|---|---|
committer | Côme Chilliet (Rebase PR Action) <come-nc@users.noreply.github.com> | 2022-07-11 09:46:23 +0000 |
commit | 2e921f8b3df2f53bd780b95303b74ff2c7cc444f (patch) | |
tree | 5b2c4d6b14f0a2cc96d0b882a017657e90935153 /lib/private/BackgroundJob/JobList.php | |
parent | cc89da26c6b18db8680b75b58b965052c9c9a60f (diff) | |
download | nextcloud-server-2e921f8b3df2f53bd780b95303b74ff2c7cc444f.tar.gz nextcloud-server-2e921f8b3df2f53bd780b95303b74ff2c7cc444f.zip |
Fix typing in IJobList
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/BackgroundJob/JobList.php')
-rw-r--r-- | lib/private/BackgroundJob/JobList.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/private/BackgroundJob/JobList.php b/lib/private/BackgroundJob/JobList.php index 82e8e86c5c6..20176e45125 100644 --- a/lib/private/BackgroundJob/JobList.php +++ b/lib/private/BackgroundJob/JobList.php @@ -51,7 +51,7 @@ class JobList implements IJobList { } /** - * @param IJob|string $job + * @param IJob|class-string<IJob> $job * @param mixed $argument */ public function add($job, $argument = null): void { @@ -132,7 +132,7 @@ class JobList implements IJobList { /** * check if a job is in the list * - * @param IJob|string $job + * @param IJob|class-string<IJob> $job * @param mixed $argument */ public function has($job, $argument): bool { @@ -164,7 +164,7 @@ class JobList implements IJobList { * @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() { + public function getAll(): array { return $this->getJobs(null, null, 0); } @@ -261,10 +261,7 @@ class JobList implements IJobList { } } - /** - * @param int $id - */ - public function getById($id): ?IJob { + public function getById(int $id): ?IJob { $row = $this->getDetailsById($id); if ($row) { @@ -375,7 +372,6 @@ class JobList implements IJobList { /** * Reset the $job so it executes on the next trigger * - * @param IJob $job * @since 23.0.0 */ public function resetBackgroundJob(IJob $job): void { |