aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorHamza Mahjoubi <hamzamahjoubi221@gmail.com>2024-07-03 10:47:59 +0200
committerHamza Mahjoubi <hamzamahjoubi221@gmail.com>2024-07-03 12:31:53 +0200
commit85a3b27cf956ebdb61f569ac04b7feb2d4835b37 (patch)
treea6f7fdd821cb601ef4f322ee90b9e46d6be04ec8 /lib/private
parent84699048b5626373d9e3e859bc48d9b355018fb9 (diff)
downloadnextcloud-server-85a3b27cf956ebdb61f569ac04b7feb2d4835b37.tar.gz
nextcloud-server-85a3b27cf956ebdb61f569ac04b7feb2d4835b37.zip
Fix: Make out of office replacement nullable
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/User/OutOfOfficeData.php8
1 files changed, 4 insertions, 4 deletions
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;
}