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
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-09 19:31:13 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-12-09 19:31:13 +0300
commit43aec6fc80785f7e2ca209a34bd925f637ce74dc (patch)
treec7479713faa57cf9c6de5aa00438876061253b6a /lib/Controller
parent55fc18d1bc7026609c97809d82e00610382d17ba (diff)
Add Psalm-generated return types
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/AliasesController.php3
-rw-r--r--lib/Controller/MailboxesController.php11
2 files changed, 13 insertions, 1 deletions
diff --git a/lib/Controller/AliasesController.php b/lib/Controller/AliasesController.php
index add3efb5f..b8fcb685f 100644
--- a/lib/Controller/AliasesController.php
+++ b/lib/Controller/AliasesController.php
@@ -62,7 +62,10 @@ class AliasesController extends Controller {
/**
* @NoAdminRequired
+ *
* @TrapError
+ *
+ * @return never
*/
public function show() {
throw new NotImplemented();
diff --git a/lib/Controller/MailboxesController.php b/lib/Controller/MailboxesController.php
index fed7784b0..e69232ef5 100644
--- a/lib/Controller/MailboxesController.php
+++ b/lib/Controller/MailboxesController.php
@@ -231,7 +231,10 @@ class MailboxesController extends Controller {
/**
* @NoAdminRequired
+ *
* @TrapError
+ *
+ * @return never
*/
public function show() {
throw new NotImplemented();
@@ -239,7 +242,10 @@ class MailboxesController extends Controller {
/**
* @NoAdminRequired
+ *
* @TrapError
+ *
+ * @return never
*/
public function update() {
throw new NotImplemented();
@@ -247,12 +253,15 @@ class MailboxesController extends Controller {
/**
* @NoAdminRequired
+ *
* @TrapError
*
* @throws ClientException
* @throws ServiceException
+ *
+ * @return JSONResponse
*/
- public function create(int $accountId, string $name) {
+ public function create(int $accountId, string $name): JSONResponse {
$account = $this->accountService->find($this->currentUserId, $accountId);
return new JSONResponse($this->mailManager->createMailbox($account, $name));