diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-28 14:56:39 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2023-06-28 14:59:36 +0200 |
commit | cb788052824a4bcaa5e64809c485269b2af1b43f (patch) | |
tree | d7b10a413b580c1daf5234c3067247e35b77f88a | |
parent | fbc63fe57c7665e7a923ae70deac3ce8fa497acf (diff) | |
download | nextcloud-server-cb788052824a4bcaa5e64809c485269b2af1b43f.tar.gz nextcloud-server-cb788052824a4bcaa5e64809c485269b2af1b43f.zip |
fix(ocp): TimedJob can't have a more specific argument than Job
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
-rw-r--r-- | build/psalm-baseline-ocp.xml | 6 | ||||
-rw-r--r-- | lib/public/BackgroundJob/TimedJob.php | 9 |
2 files changed, 4 insertions, 11 deletions
diff --git a/build/psalm-baseline-ocp.xml b/build/psalm-baseline-ocp.xml index 21a2ce27001..d34553109b3 100644 --- a/build/psalm-baseline-ocp.xml +++ b/build/psalm-baseline-ocp.xml @@ -45,12 +45,6 @@ <code>\OC</code> </UndefinedClass> </file> - <file src="lib/public/BackgroundJob/TimedJob.php"> - <MoreSpecificImplementedParamType> - <code>$jobList</code> - <code>$jobList</code> - </MoreSpecificImplementedParamType> - </file> <file src="lib/public/Cache/CappedMemoryCache.php"> <MissingTemplateParam> <code>\ArrayAccess</code> 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 */ |