Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
}
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 {