From 85a3b27cf956ebdb61f569ac04b7feb2d4835b37 Mon Sep 17 00:00:00 2001 From: Hamza Mahjoubi Date: Wed, 3 Jul 2024 10:47:59 +0200 Subject: Fix: Make out of office replacement nullable Signed-off-by: Hamza Mahjoubi --- lib/private/User/OutOfOfficeData.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/private') diff --git a/lib/private/User/OutOfOfficeData.php b/lib/private/User/OutOfOfficeData.php index 2d90dbfd39c..b1739126443 100644 --- a/lib/private/User/OutOfOfficeData.php +++ b/lib/private/User/OutOfOfficeData.php @@ -19,8 +19,8 @@ class OutOfOfficeData implements IOutOfOfficeData { private int $endDate, private string $shortMessage, private string $message, - private string $replacementUserId, - private string $replacementUserDisplayName) { + private ?string $replacementUserId, + private ?string $replacementUserDisplayName) { } public function getId(): string { @@ -47,11 +47,11 @@ class OutOfOfficeData implements IOutOfOfficeData { return $this->message; } - public function getReplacementUserId(): string { + public function getReplacementUserId(): ?string { return $this->replacementUserId; } - public function getReplacementUserDisplayName(): string { + public function getReplacementUserDisplayName(): ?string { return $this->replacementUserDisplayName; } -- cgit v1.2.3