]> source.dussan.org Git - nextcloud-server.git/commitdiff
Update tests/lib/BackgroundJob/DummyJobList.php
authorMarcel Klehr <mklehr@gmx.net>
Mon, 24 Apr 2023 10:35:52 +0000 (12:35 +0200)
committerGitHub <noreply@github.com>
Mon, 24 Apr 2023 10:35:52 +0000 (12:35 +0200)
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
tests/lib/BackgroundJob/DummyJobList.php

index 700393828649c13ee06876a9ae188c2a62daa877..42b69cfbe418c068c06941d556fc3d7c8507b33d 100644 (file)
@@ -141,11 +141,11 @@ class DummyJobList extends \OC\BackgroundJob\JobList {
        }
 
        public function hasReservedJob(?string $className = null): bool {
-               return $this->reserved[$className];
+               return $this->reserved[$className ?? ''];
        }
 
        public function setHasReservedJob(?string $className, bool $hasReserved): void {
-               $this->reserved[$className] = $hasReserved;
+               $this->reserved[$className ?? ''] = $hasReserved;
        }
 
        public function setExecutionTime(IJob $job, $timeTaken): void {