From 6148c5e0a126d267cfd9aa74be29539a15b11490 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Mon, 24 Apr 2023 12:35:52 +0200 Subject: [PATCH] Update tests/lib/BackgroundJob/DummyJobList.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Marcel Klehr --- tests/lib/BackgroundJob/DummyJobList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/lib/BackgroundJob/DummyJobList.php b/tests/lib/BackgroundJob/DummyJobList.php index 70039382864..42b69cfbe41 100644 --- a/tests/lib/BackgroundJob/DummyJobList.php +++ b/tests/lib/BackgroundJob/DummyJobList.php @@ -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 {