Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/Model
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-09 14:38:20 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-13 14:07:15 +0300
commitf19cefd870da3fd711915e5ee5899d9dc5c8fd11 (patch)
tree9c4d9db2900b9a7c298242a5072c5b9f1787346f /lib/Model
parentd12736ab0f22edc887741c7902da17d134bd8f0f (diff)
Fix documented type errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/NewMessageData.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Model/NewMessageData.php b/lib/Model/NewMessageData.php
index acad7db3f..59e877211 100644
--- a/lib/Model/NewMessageData.php
+++ b/lib/Model/NewMessageData.php
@@ -46,7 +46,7 @@ class NewMessageData {
/** @var string */
private $subject;
- /** @var string|null */
+ /** @var string */
private $body;
/** @var array */
@@ -61,7 +61,7 @@ class NewMessageData {
* @param AddressList $cc
* @param AddressList $bcc
* @param string $subject
- * @param string|null $body
+ * @param string $body
* @param array $attachments
* @package bool $isHtml
*/
@@ -70,7 +70,7 @@ class NewMessageData {
AddressList $cc,
AddressList $bcc,
string $subject,
- string $body = null,
+ string $body,
array $attachments = [],
bool $isHtml = true) {
$this->account = $account;
@@ -99,7 +99,7 @@ class NewMessageData {
string $cc = null,
string $bcc = null,
string $subject,
- string $body = null,
+ string $body,
array $attachments = [],
bool $isHtml = true) {
$toList = AddressList::parse($to ?: '');
@@ -145,9 +145,9 @@ class NewMessageData {
}
/**
- * @return string|null
+ * @return string
*/
- public function getBody() {
+ public function getBody(): string {
return $this->body;
}