From 17fa0059e41a52fb7b6348db50bf05a1e78794c6 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Sat, 26 Aug 2023 14:40:19 +0200 Subject: [PATCH] User: Fix errors in the dialog (#753) --- application/modules/user/models/Dialog.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/application/modules/user/models/Dialog.php b/application/modules/user/models/Dialog.php index fa8443726..9954b0ac9 100644 --- a/application/modules/user/models/Dialog.php +++ b/application/modules/user/models/Dialog.php @@ -104,9 +104,9 @@ public function setId(int $id): Dialog /** * Get the ID of the message * - * @return int + * @return int|null */ - public function getId(): int + public function getId(): ?int { return $this->id; } @@ -127,9 +127,9 @@ public function setCId(int $cid): Dialog /** * Get the CONVERSATION_ID of the dialog * - * @return int + * @return int|null */ - public function getCId(): int + public function getCId(): ?int { return $this->c_id; } @@ -265,9 +265,9 @@ public function setText(string $text): Dialog /** * Get the text of the dialog * - * @return string + * @return string|null */ - public function getText(): string + public function getText(): ?string { return $this->text; }