diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2023-06-28 21:51:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-28 21:51:53 +0200 |
commit | 6d81147dc4d6b110e8cd4c421235b94db40ba1f3 (patch) | |
tree | e98ced86c34c7b55d2ba35e584962958184f9833 /lib | |
parent | 8c73fedf950906baa4b2f8686f26051ebe0104b2 (diff) | |
parent | cb788052824a4bcaa5e64809c485269b2af1b43f (diff) | |
download | nextcloud-server-6d81147dc4d6b110e8cd4c421235b94db40ba1f3.tar.gz nextcloud-server-6d81147dc4d6b110e8cd4c421235b94db40ba1f3.zip |
Merge pull request #39042 from nextcloud/fix/ocp/timed-job-joblist-type
fix(ocp): TimedJob can't have a more specific argument than Job
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/BackgroundJob/TimedJob.php | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/public/BackgroundJob/TimedJob.php b/lib/public/BackgroundJob/TimedJob.php index 9d6b599c21b..8fd8fadce4f 100644 --- a/lib/public/BackgroundJob/TimedJob.php +++ b/lib/public/BackgroundJob/TimedJob.php @@ -26,7 +26,6 @@ declare(strict_types=1); */ namespace OCP\BackgroundJob; -use OC\BackgroundJob\JobList; use OCP\ILogger; /** @@ -81,20 +80,20 @@ abstract class TimedJob extends Job { } /** - * run the job if the last run is is more than the interval ago + * Run the job if the last run is more than the interval ago * - * @param JobList $jobList + * @param IJobList $jobList * @param ILogger|null $logger * * @since 15.0.0 * @deprecated since 25.0.0 Use start() instead */ - final public function execute($jobList, ILogger $logger = null) { + final public function execute(IJobList $jobList, ILogger $logger = null) { $this->start($jobList); } /** - * Run the job if the last run is is more than the interval ago + * Run the job if the last run is more than the interval ago * * @since 25.0.0 */ |