]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make sure the function signatures of the backgroundjob match 23701/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 26 Oct 2020 20:40:55 +0000 (21:40 +0100)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 26 Oct 2020 20:40:55 +0000 (21:40 +0100)
Else PHP says no

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/federation/lib/BackgroundJob/GetSharedSecret.php
apps/federation/lib/BackgroundJob/RequestSharedSecret.php

index c86c7f1d75a07374150b74bcc18e1a064ca379c5..669de02ec5ca9735078ce4b7e99f551e230d1cbf 100644 (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)) {
index 990f5025bf5d2cc570c4b8138f8fa97aaa4fa49d..f577372bbae3ca2410d01cb21a89e4bc91d304f1 100644 (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)) {