diff options
author | Hamza <40746210+hamza221@users.noreply.github.com> | 2024-07-03 15:03:24 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-03 15:03:24 +0200 |
commit | 993424fc95e5a51f45491d61d446a0c5fb9dfcf6 (patch) | |
tree | c748593bcfed66f0a5ccfc625af04836a36451b0 /lib | |
parent | 05bdafa0f5e8bb843dcaf48181f1256609192961 (diff) | |
parent | 85a3b27cf956ebdb61f569ac04b7feb2d4835b37 (diff) | |
download | nextcloud-server-993424fc95e5a51f45491d61d446a0c5fb9dfcf6.tar.gz nextcloud-server-993424fc95e5a51f45491d61d446a0c5fb9dfcf6.zip |
Merge pull request #46273 from nextcloud/fix/make-ooo-replacement-nullable
Fix: Make out of office replacement nullable
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/User/OutOfOfficeData.php | 8 | ||||
-rw-r--r-- | lib/public/User/IOutOfOfficeData.php | 8 |
2 files changed, 8 insertions, 8 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; } diff --git a/lib/public/User/IOutOfOfficeData.php b/lib/public/User/IOutOfOfficeData.php index 19cc1120c4c..e3a4e2773bb 100644 --- a/lib/public/User/IOutOfOfficeData.php +++ b/lib/public/User/IOutOfOfficeData.php @@ -22,8 +22,8 @@ use OCP\IUser; * endDate: int, * shortMessage: string, * message: string, - * replacementUserId: string, - * replacementUserDisplayName: string + * replacementUserId: ?string, + * replacementUserDisplayName: ?string * } * * @since 28.0.0 @@ -76,14 +76,14 @@ interface IOutOfOfficeData extends JsonSerializable { * * @since 30.0.0 */ - public function getReplacementUserId(): string; + public function getReplacementUserId(): ?string; /** * Get the replacement user displayName for auto responders and similar * * @since 30.0.0 */ - public function getReplacementUserDisplayName(): string; + public function getReplacementUserDisplayName(): ?string; /** * @return OutOfOfficeData |