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-08 16:09:16 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-08 16:36:42 +0300
commit7143b9cb687ca75b3be2654d1fe59bff92f24af8 (patch)
tree9bed28d0e3c93908b6fbccaff335e93bc43a95b2 /lib/Model
parent5babccec005f665558fc2b8aab669bd8ea27c166 (diff)
Fix psalm errors
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Model')
-rw-r--r--lib/Model/IMAPMessage.php2
-rw-r--r--lib/Model/IMessage.php7
-rw-r--r--lib/Model/Message.php12
3 files changed, 11 insertions, 10 deletions
diff --git a/lib/Model/IMAPMessage.php b/lib/Model/IMAPMessage.php
index c403b1322..d34a6eff0 100644
--- a/lib/Model/IMAPMessage.php
+++ b/lib/Model/IMAPMessage.php
@@ -145,7 +145,7 @@ class IMAPMessage implements IMessage, JsonSerializable {
}
/**
- * @param array $flags
+ * @param string $flags
*
* @throws Exception
*
diff --git a/lib/Model/IMessage.php b/lib/Model/IMessage.php
index 52935f116..f5a56d613 100644
--- a/lib/Model/IMessage.php
+++ b/lib/Model/IMessage.php
@@ -23,6 +23,7 @@ declare(strict_types=1);
namespace OCA\Mail\Model;
+use Horde_Mime_Part;
use OCA\Mail\AddressList;
use OCA\Mail\Db\LocalAttachment;
use OCP\Files\File;
@@ -45,7 +46,7 @@ interface IMessage {
public function getFlags(): array;
/**
- * @param array $flags
+ * @param string $flags
*/
public function setFlags(array $flags);
@@ -120,12 +121,12 @@ interface IMessage {
public function setContent(string $content);
/**
- * @return File[]
+ * @return Horde_Mime_Part[]
*/
public function getCloudAttachments(): array;
/**
- * @return int[]
+ * @return Horde_Mime_Part[]
*/
public function getLocalAttachments(): array;
diff --git a/lib/Model/Message.php b/lib/Model/Message.php
index 1fedcde8b..9c7cc420a 100644
--- a/lib/Model/Message.php
+++ b/lib/Model/Message.php
@@ -50,16 +50,16 @@ class Message implements IMessage {
/** @var string|null */
private $inReplyTo = null;
- /** @var array */
+ /** @var string[] */
private $flags = [];
/** @var string */
private $content = '';
- /** @var File[] */
+ /** @var Horde_Mime_Part[] */
private $cloudAttachments = [];
- /** @var int[] */
+ /** @var Horde_Mime_Part[] */
private $localAttachments = [];
public function __construct() {
@@ -81,7 +81,7 @@ class Message implements IMessage {
/**
* Get all flags set on this message
*
- * @return array
+ * @return string[]
*/
public function getFlags(): array {
return $this->flags;
@@ -209,14 +209,14 @@ class Message implements IMessage {
}
/**
- * @return File[]
+ * @return Horde_Mime_Part[]
*/
public function getCloudAttachments(): array {
return $this->cloudAttachments;
}
/**
- * @return int[]
+ * @return Horde_Mime_Part[]
*/
public function getLocalAttachments(): array {
return $this->localAttachments;