Browse Source

fix(ocp): TimedJob can't have a more specific argument than Job

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v28.0.0beta1
Christoph Wurst 11 months ago
parent
commit
cb78805282
No account linked to committer's email address
2 changed files with 4 additions and 11 deletions
  1. 0
    6
      build/psalm-baseline-ocp.xml
  2. 4
    5
      lib/public/BackgroundJob/TimedJob.php

+ 0
- 6
build/psalm-baseline-ocp.xml View File

@@ -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>

+ 4
- 5
lib/public/BackgroundJob/TimedJob.php View File

@@ -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
*/

Loading…
Cancel
Save