diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-04-24 12:35:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-24 12:35:52 +0200 |
commit | 6148c5e0a126d267cfd9aa74be29539a15b11490 (patch) | |
tree | 12d8a9ac415572b20cf9d03200b8184f6e532fd2 /tests | |
parent | d1e4a7a75069f4a24b2334fceeaa1da855944d59 (diff) | |
download | nextcloud-server-6148c5e0a126d267cfd9aa74be29539a15b11490.tar.gz nextcloud-server-6148c5e0a126d267cfd9aa74be29539a15b11490.zip |
Update tests/lib/BackgroundJob/DummyJobList.php
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/BackgroundJob/DummyJobList.php | 4 |
1 files 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 { |