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

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authordartcafe <github@dartcafe.de>2022-03-23 23:18:28 +0300
committerdartcafe <github@dartcafe.de>2022-03-23 23:18:28 +0300
commitda96a694f2d8df3e1fcae81d2c2b46eb4d00aee0 (patch)
treea1b0a59c5df1995041c2d4d5b1d620c83e7eb315 /lib
parent41d56ed05f19690fc66dd1d7ac076b1769f412cd (diff)
fix
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Model/Mail/MailBase.php2
-rw-r--r--lib/Service/PollService.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/Model/Mail/MailBase.php b/lib/Model/Mail/MailBase.php
index e1e8cbd1..18d1a421 100644
--- a/lib/Model/Mail/MailBase.php
+++ b/lib/Model/Mail/MailBase.php
@@ -211,7 +211,7 @@ abstract class MailBase {
return $this->getParsedMarkDown($this->poll->getDescription());
}
- protected function getParsedMarkDown($source) : string {
+ protected function getParsedMarkDown(string $source) : string {
$config = [
'renderer' => [
'soft_break' => "<br />",
diff --git a/lib/Service/PollService.php b/lib/Service/PollService.php
index 81b61148..c028680d 100644
--- a/lib/Service/PollService.php
+++ b/lib/Service/PollService.php
@@ -348,9 +348,9 @@ class PollService {
/**
* Collect email addresses from particitipants
*
- * @return string[]
+ * @return string[][]
*
- * @psalm-return array<int, string>
+ * @psalm-return list<array{displayName: string, emailAddress: string, combined: string}>
*/
public function getParticipantsEmailAddresses(int $pollId): array {
$this->acl->setPollId($pollId, Acl::PERMISSION_POLL_EDIT);