Make sure the function signatures of the backgroundjob match

Else PHP says no

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2020-10-26 21:40:55 +01:00
parent 7570daf123
commit 1f2ff18439
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ class GetSharedSecret extends Job {
* @param JobList $jobList
* @param ILogger|null $logger
*/
public function execute($jobList, ILogger $logger = null) {
public function execute(IJobList $jobList, ILogger $logger = null) {
$target = $this->argument['url'];
// only execute if target is still in the list of trusted domains
if ($this->trustedServers->isTrustedServer($target)) {

View File

@ -117,7 +117,7 @@ class RequestSharedSecret extends Job {
* @param JobList $jobList
* @param ILogger|null $logger
*/
public function execute($jobList, ILogger $logger = null) {
public function execute(IJobList $jobList, ILogger $logger = null) {
$target = $this->argument['url'];
// only execute if target is still in the list of trusted domains
if ($this->trustedServers->isTrustedServer($target)) {